summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2018-04-13 16:32:23 +0100
committer smf- <smf-@users.noreply.github.com>2018-04-13 16:41:37 +0100
commit1a27a251f819ecd7990a21d1b1c5ef82355b63c2 (patch)
treee64a720ca63495737ea5536cc90408343a4feff1 /src/emu/debug/debugcpu.cpp
parent603b5bfd61ed3b9968c268aaa9cb13ebb6801ec6 (diff)
remove safe_pc() and safe_pcbase() (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 016d214cfa4..e2a3469ddb0 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -1741,7 +1741,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_pcbase());
+ prepare_for_step_overout(m_state->pcbase());
// no longer in debugger code
debugcpu.set_within_instruction(false);
@@ -2776,7 +2776,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_pcbase();
+ offs_t pc = space.device().state().pcbase();
std::string buffer;
if (type & WATCHPOINT_WRITE)
@@ -2806,7 +2806,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_pcbase();
+ offs_t curpc = m_device.state().pcbase();
// see if we have a match in our list
unsigned int hotindex;
@@ -2852,7 +2852,7 @@ void device_debug::hotspot_check(address_space &space, offs_t address)
u64 device_debug::get_current_pc(symbol_table &table)
{
device_t *device = reinterpret_cast<device_t *>(table.globalref());
- return device->safe_pcbase();
+ return device->state().pcbase();
}