summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/points.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/debug/points.cpp')
-rw-r--r--src/emu/debug/points.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/debug/points.cpp b/src/emu/debug/points.cpp
index 688881a40e6..5bb85fa2ea2 100644
--- a/src/emu/debug/points.cpp
+++ b/src/emu/debug/points.cpp
@@ -379,9 +379,10 @@ void debug_watchpoint::triggered(read_or_write type, offs_t address, u64 data, u
data,
address);
- if (debug.cpu().live_cpu() == &m_debugInterface->device())
+ const device_state_interface *state;
+ if (debug.cpu().live_cpu() == &m_debugInterface->device() && m_debugInterface->device().interface(state))
{
- offs_t pc = m_debugInterface->device().state().pcbase();
+ offs_t pc = state->pcbase();
debug.console().printf("%s (PC=%X)\n", buffer, pc);
m_debugInterface->compute_debug_flags();
}