diff options
| author | 2018-07-02 10:20:50 -0600 | |
|---|---|---|
| committer | 2018-07-02 21:45:47 -0400 | |
| commit | 0d46f0df122dbc9b9a9d9f97e2da6b1953ef939b (patch) | |
| tree | aba03bf491181cf741420dd1445bd5399e48a3af /src/core/gdbstub/gdbstub.cpp | |
| parent | Rename logging macro back to LOG_* (diff) | |
| download | yuzu-0d46f0df122dbc9b9a9d9f97e2da6b1953ef939b.tar.gz yuzu-0d46f0df122dbc9b9a9d9f97e2da6b1953ef939b.tar.xz yuzu-0d46f0df122dbc9b9a9d9f97e2da6b1953ef939b.zip | |
Update clang format
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
| -rw-r--r-- | src/core/gdbstub/gdbstub.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index 500734f2d..938852a1a 100644 --- a/src/core/gdbstub/gdbstub.cpp +++ b/src/core/gdbstub/gdbstub.cpp | |||
| @@ -414,7 +414,7 @@ static void RemoveBreakpoint(BreakpointType type, PAddr addr) { | |||
| 414 | auto bp = p.find(static_cast<u64>(addr)); | 414 | auto bp = p.find(static_cast<u64>(addr)); |
| 415 | if (bp != p.end()) { | 415 | if (bp != p.end()) { |
| 416 | LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: {:016X} bytes at {:016X} of type {}", | 416 | LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: {:016X} bytes at {:016X} of type {}", |
| 417 | bp->second.len, bp->second.addr, static_cast<int>(type)); | 417 | bp->second.len, bp->second.addr, static_cast<int>(type)); |
| 418 | p.erase(static_cast<u64>(addr)); | 418 | p.erase(static_cast<u64>(addr)); |
| 419 | } | 419 | } |
| 420 | } | 420 | } |
| @@ -460,9 +460,9 @@ bool CheckBreakpoint(PAddr addr, BreakpointType type) { | |||
| 460 | 460 | ||
| 461 | if (bp->second.active && (addr >= bp->second.addr && addr < bp->second.addr + len)) { | 461 | if (bp->second.active && (addr >= bp->second.addr && addr < bp->second.addr + len)) { |
| 462 | LOG_DEBUG(Debug_GDBStub, | 462 | LOG_DEBUG(Debug_GDBStub, |
| 463 | "Found breakpoint type {} @ {:016X}, range: {:016X}" | 463 | "Found breakpoint type {} @ {:016X}, range: {:016X}" |
| 464 | " - {:016X} ({:X} bytes)", | 464 | " - {:016X} ({:X} bytes)", |
| 465 | static_cast<int>(type), addr, bp->second.addr, bp->second.addr + len, len); | 465 | static_cast<int>(type), addr, bp->second.addr, bp->second.addr + len, len); |
| 466 | return true; | 466 | return true; |
| 467 | } | 467 | } |
| 468 | } | 468 | } |
| @@ -658,10 +658,9 @@ static void ReadCommand() { | |||
| 658 | u8 checksum_calculated = CalculateChecksum(command_buffer, command_length); | 658 | u8 checksum_calculated = CalculateChecksum(command_buffer, command_length); |
| 659 | 659 | ||
| 660 | if (checksum_received != checksum_calculated) { | 660 | if (checksum_received != checksum_calculated) { |
| 661 | LOG_ERROR( | 661 | LOG_ERROR(Debug_GDBStub, |
| 662 | Debug_GDBStub, | 662 | "gdb: invalid checksum: calculated {:02X} and read {:02X} for ${}# (length: {})", |
| 663 | "gdb: invalid checksum: calculated {:02X} and read {:02X} for ${}# (length: {})", | 663 | checksum_calculated, checksum_received, command_buffer, command_length); |
| 664 | checksum_calculated, checksum_received, command_buffer, command_length); | ||
| 665 | 664 | ||
| 666 | command_length = 0; | 665 | command_length = 0; |
| 667 | 666 | ||
| @@ -889,7 +888,7 @@ static bool CommitBreakpoint(BreakpointType type, PAddr addr, u64 len) { | |||
| 889 | p.insert({addr, breakpoint}); | 888 | p.insert({addr, breakpoint}); |
| 890 | 889 | ||
| 891 | LOG_DEBUG(Debug_GDBStub, "gdb: added {} breakpoint: {:016X} bytes at {:016X}", | 890 | LOG_DEBUG(Debug_GDBStub, "gdb: added {} breakpoint: {:016X} bytes at {:016X}", |
| 892 | static_cast<int>(type), breakpoint.len, breakpoint.addr); | 891 | static_cast<int>(type), breakpoint.len, breakpoint.addr); |
| 893 | 892 | ||
| 894 | return true; | 893 | return true; |
| 895 | } | 894 | } |