diff options
| author | 2019-08-11 18:21:16 +0200 | |
|---|---|---|
| committer | 2019-08-11 12:21:16 -0400 | |
| commit | fb5a3dcfaac043e99041679e66776af550d1bff1 (patch) | |
| tree | e698bc91662719ea049e412894e3061fb3281a10 /src/emu/debug/debugcpu.cpp | |
| parent | 69c90113ae1fef25122d84bff948c271681b6d91 (diff) | |
gdbstub: added new GDB stub debugger (#5456)
* gdbstub: added new GDB stub debugger
This debugger can be used to connect to an external debugger that
communicates using the GDB Remote Serial Protocol, such as GDB itself
or many other GDB frontends.
Currently i386 (ct486), arm7 (gba), and ppc (pmac6100) are supported.
* gdbstub: enable GDB stub debugger in mac and windows builds
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
| -rw-r--r-- | src/emu/debug/debugcpu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 7bb39bc112f..e49c5bfdb61 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -1299,6 +1299,8 @@ device_debug::device_debug(device_t &device) , m_pc_history_index(0) , m_bplist(nullptr) , m_rplist(nullptr) + , m_triggered_breakpoint(nullptr) + , m_triggered_watchpoint(nullptr) , m_trace(nullptr) , m_hotspot_threshhold(0) , m_track_pc_set() @@ -2551,7 +2553,10 @@ void device_debug::breakpoint_check(offs_t pc) // print a notification, unless the action made us go again if (debugcpu.is_stopped()) + { m_device.machine().debugger().console().printf("Stopped at breakpoint %X\n", bp->m_index); + m_triggered_breakpoint = bp; + } break; } @@ -3071,6 +3076,7 @@ void device_debug::watchpoint::triggered(read_or_write type, offs_t address, u64 pc); debug.console().printf("%s\n", buffer); m_debugInterface->compute_debug_flags(); + m_debugInterface->set_triggered_watchpoint(this); } debug.cpu().set_within_instruction(false); |
