summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-09-27 14:24:33 +0100
committer Vas Crabb <vas@vastheman.com>2016-09-28 17:45:37 +1000
commitfd279ffffaba099464a584b52c7b5436305493e5 (patch)
tree31fdd998bc915b83a27f6ea1fbae29f662b32917 /src/emu/debug/debugcpu.cpp
parent1de6465b1837b2dc391dcbe90df23a9c8427c750 (diff)
Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for everything in the debugger, which allows interruptible cpu's to work properly. [smf]
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 7fbcb29b3ea..5e6535a9fb4 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -1939,7 +1939,7 @@ void device_debug::instruction_hook(offs_t curpc)
// handle step out/over on the instruction we are about to execute
if ((m_flags & (DEBUG_FLAG_STEPPING_OVER | DEBUG_FLAG_STEPPING_OUT)) != 0 && m_stepaddr == ~0)
- prepare_for_step_overout(m_device.safe_pc());
+ prepare_for_step_overout(m_device.safe_pcbase());
// no longer in debugger code
debugcpu.set_within_instruction(false);
@@ -2955,7 +2955,7 @@ void debugger_cpu::watchpoint_check(address_space& space, int type, offs_t addre
{
"0bytes", "byte", "word", "3bytes", "dword", "5bytes", "6bytes", "7bytes", "qword"
};
- offs_t pc = space.device().safe_pc();
+ offs_t pc = space.device().safe_pcbase();
std::string buffer;
if (type & WATCHPOINT_WRITE)
@@ -2985,7 +2985,7 @@ void debugger_cpu::watchpoint_check(address_space& space, int type, offs_t addre
void device_debug::hotspot_check(address_space &space, offs_t address)
{
- offs_t curpc = m_device.safe_pc();
+ offs_t curpc = m_device.safe_pcbase();
// see if we have a match in our list
unsigned int hotindex;