mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-30 03:14:22 +01:00
gdbstub: Silence formatting specifier warnings
This commit is contained in:
parent
af8ae770ef
commit
51ce224a96
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <cinttypes>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
@ -360,8 +361,9 @@ static void RemoveBreakpoint(BreakpointType type, PAddr addr) {
|
|||||||
|
|
||||||
auto bp = p.find(static_cast<u64>(addr));
|
auto bp = p.find(static_cast<u64>(addr));
|
||||||
if (bp != p.end()) {
|
if (bp != p.end()) {
|
||||||
LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: %08x bytes at %08x of type %d\n",
|
LOG_DEBUG(Debug_GDBStub,
|
||||||
bp->second.len, bp->second.addr, type);
|
"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));
|
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)) {
|
if (bp->second.active && (addr >= bp->second.addr && addr < bp->second.addr + len)) {
|
||||||
LOG_DEBUG(Debug_GDBStub,
|
LOG_DEBUG(Debug_GDBStub,
|
||||||
"Found breakpoint type %d @ %08x, range: %08x - %08x (%d bytes)\n", type,
|
"Found breakpoint type %d @ %016" PRIx64 ", range: %016" PRIx64
|
||||||
addr, bp->second.addr, bp->second.addr + len, len);
|
" - %016" PRIx64 " (%" PRIx64 " bytes)\n",
|
||||||
|
static_cast<int>(type), addr, bp->second.addr, bp->second.addr + len, len);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -778,8 +781,8 @@ static bool CommitBreakpoint(BreakpointType type, PAddr addr, u64 len) {
|
|||||||
breakpoint.len = len;
|
breakpoint.len = len;
|
||||||
p.insert({addr, breakpoint});
|
p.insert({addr, breakpoint});
|
||||||
|
|
||||||
LOG_DEBUG(Debug_GDBStub, "gdb: added %d breakpoint: %08x bytes at %08x\n", type, breakpoint.len,
|
LOG_DEBUG(Debug_GDBStub, "gdb: added %d breakpoint: %016" PRIx64 " bytes at %016" PRIx64 "\n",
|
||||||
breakpoint.addr);
|
static_cast<int>(type), breakpoint.len, breakpoint.addr);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user