mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Debugger: Return detail for breakpoints in macros.
This commit is contained in:
1 parent
7a1398844a
commit
a0c1320aec
1 file changed
+11
-3
@@ -135,12 +135,20 @@ void WebSocketDisasmState::WriteDisasmLine(JsonWriter &json, const DisassemblyLi
|
||||
json.writeNull("dataSymbol");
|
||||
}
|
||||
|
||||
bool enabled;
|
||||
bool enabled = false;
|
||||
int breakpointOffset = -1;
|
||||
for (u32 i = 0; i < l.totalSize; i += 4) {
|
||||
if (CBreakPoints::IsAddressBreakPoint(addr + i, &enabled))
|
||||
breakpointOffset = i;
|
||||
if (breakpointOffset != -1 && enabled)
|
||||
break;
|
||||
}
|
||||
// TODO: Account for bp inside macro?
|
||||
if (CBreakPoints::IsAddressBreakPoint(addr, &enabled)) {
|
||||
if (breakpointOffset != -1) {
|
||||
json.pushDict("breakpoint");
|
||||
json.writeBool("enabled", enabled);
|
||||
auto cond = CBreakPoints::GetBreakPointCondition(addr);
|
||||
json.writeUint("address", addr + breakpointOffset);
|
||||
auto cond = CBreakPoints::GetBreakPointCondition(addr + breakpointOffset);
|
||||
if (cond)
|
||||
json.writeString("condition", cond->expressionString);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user