mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 18:29:05 +02:00
ImDebugger: right-click menu on memory blocks, with copy and breakpoint
The block list in the memory windows was navigation-only - click to jump there, and that was it. Right-clicking a block now offers the two things you actually want once you've found one: - Copy info to clipboard. More than the status bar shows (range, size, the PC that allocated it, ticks, flags, allocated state), since the reason to copy it is to keep it - for a bug report or to compare two runs. - Add memory breakpoint, covering the whole block rather than a single address. That's the point of doing it from this list: you want to catch anything touching the allocation, not one byte of it. Read and write, pause and log. It then opens and focuses the Breakpoints window, via a new SHOW_IN_BREAKPOINTS command so window activation stays with the other ImCmds rather than poking at the config from here. Only on the blocks themselves, not on the synthetic "(start)" and "(end)" entries, which have no block info behind them to copy or watch. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZq8ZtJmFY7bkX5FVkr3P9
This commit is contained in:
1 parent
c22677c1e2
commit
f9703217fc
3 files changed
+50
No files matched your search
@@ -2934,6 +2934,12 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUCommon *gpuDebug, Draw:
|
||||
ImGui::SetWindowFocus(ImMemWindow::Title(index));
|
||||
break;
|
||||
}
|
||||
case ImCmd::SHOW_IN_BREAKPOINTS:
|
||||
{
|
||||
cfg_.breakpointsOpen = true;
|
||||
ImGui::SetWindowFocus("Breakpoints");
|
||||
break;
|
||||
}
|
||||
case ImCmd::SHOW_IN_MEMORY_DUMPER:
|
||||
{
|
||||
cfg_.memDumpOpen = true;
|
||||
|
||||
Reference in new issue
Block a user