summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-02-14 06:20:04 +0100
committerLioncash <mathew1800@gmail.com>2018-02-14 07:50:01 +0100
commit51ce224a969e0996f8797396dd38a639545f1b7b (patch)
tree75a32578fe2fa718b724d1bca37f42dc1a794bf5
parentMerge pull request #187 from Subv/maxwell3d_query (diff)
downloadyuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.gz
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.bz2
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.lz
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.xz
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.tar.zst
yuzu-51ce224a969e0996f8797396dd38a639545f1b7b.zip
-rw-r--r--src/core/gdbstub/gdbstub.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 2405da0c6..7a142dc21 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -6,6 +6,7 @@
#include <algorithm>
#include <atomic>
+#include <cinttypes>
#include <climits>
#include <csignal>
#include <cstdarg>
@@ -360,8 +361,9 @@ static void RemoveBreakpoint(BreakpointType type, PAddr addr) {
auto bp = p.find(static_cast<u64>(addr));
if (bp != p.end()) {
- LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: %08x bytes at %08x of type %d\n",
- bp->second.len, bp->second.addr, type);
+ LOG_DEBUG(Debug_GDBStub,
+ "gdb: removed a breakpoint: %016" PRIx64 " bytes at %016" PRIx64 " of type %d\n",
+ bp->second.len, bp->second.addr, static_cast<int>(type));
p.erase(static_cast<u64>(addr));
}
}
@@ -407,8 +409,9 @@ bool CheckBreakpoint(PAddr addr, BreakpointType type) {
if (bp->second.active && (addr >= bp->second.addr && addr < bp->second.addr + len)) {
LOG_DEBUG(Debug_GDBStub,
- "Found breakpoint type %d @ %08x, range: %08x - %08x (%d bytes)\n", type,
- addr, bp->second.addr, bp->second.addr + len, len);
+ "Found breakpoint type %d @ %016" PRIx64 ", range: %016" PRIx64
+ " - %016" PRIx64 " (%" PRIx64 " bytes)\n",
+ static_cast<int>(type), addr, bp->second.addr, bp->second.addr + len, len);
return true;
}
}
@@ -778,8 +781,8 @@ static bool CommitBreakpoint(BreakpointType type, PAddr addr, u64 len) {
breakpoint.len = len;
p.insert({addr, breakpoint});
- LOG_DEBUG(Debug_GDBStub, "gdb: added %d breakpoint: %08x bytes at %08x\n", type, breakpoint.len,
- breakpoint.addr);
+ LOG_DEBUG(Debug_GDBStub, "gdb: added %d breakpoint: %016" PRIx64 " bytes at %016" PRIx64 "\n",
+ static_cast<int>(type), breakpoint.len, breakpoint.addr);
return true;
}