Skip to content

Commit 5ebdbf5

Browse files
authored
Merge pull request #1860 from mziab/breakpoint-focus
Breakpoint usability improvements
2 parents b423f9c + fc42f82 commit 5ebdbf5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/core/debug.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ bool PCSX::Debug::triggerBP(Breakpoint* bp, uint32_t address, unsigned width, co
288288
if (g_system->running()) return keepBP;
289289
m_step = STEP_NONE;
290290
g_system->printf(_("Breakpoint triggered: PC=0x%08x - Cause: %s %s\n"), pc, name, cause);
291+
g_system->m_eventBus->signal(Events::GUI::JumpToPC{pc});
291292
return keepBP;
292293
}
293294

src/gui/widgets/assembly.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ class Assembly : private Disasm {
4545
public:
4646
Assembly(bool& show, std::vector<std::string>& favorites)
4747
: m_show(show), m_listener(g_system->m_eventBus), m_symbolsFileDialog(l_("Load Symbols"), favorites) {
48-
m_listener.listen<Events::GUI::JumpToPC>([this](const auto& event) { m_jumpToPC = event.pc; });
48+
m_listener.listen<Events::GUI::JumpToPC>([this](const auto& event) {
49+
m_jumpToPC = event.pc;
50+
m_show = true;
51+
});
4952
memset(m_jumpAddressString, 0, sizeof(m_jumpAddressString));
5053
}
5154
bool draw(GUI* gui, psxRegisters* registers, Memory* memory, const char* title);

0 commit comments

Comments
 (0)