diff options
| author | 2010-03-08 17:06:27 +0000 | |
|---|---|---|
| committer | 2010-03-08 17:06:27 +0000 | |
| commit | ec586731b9a1d8bb7a4d48de9ada4e8905a4f74e (patch) | |
| tree | da971ef612bddc69e8d748f920ac52fe71d7c63b /src/emu/debug/debugcpu.c | |
| parent | 5826c45ea48778bd9bf513fef1311a77c447ff8e (diff) | |
Made device->tag and devconfig->tag into private member variables (m_tag).
Added inline tag() function to return a const char * version. Updated
callers to use this instead of directly accessing tag.cstr() which
was awkward.
Diffstat (limited to 'src/emu/debug/debugcpu.c')
| -rw-r--r-- | src/emu/debug/debugcpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index b80c7835706..aa57387dc1b 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -554,7 +554,7 @@ void debug_cpu_interrupt_hook(running_device *device, int irqline) if (info != NULL && (info->flags & DEBUG_FLAG_STOP_INTERRUPT) != 0 && (info->stopirq == -1 || info->stopirq == irqline)) { global->execution_state = EXECUTION_STATE_STOPPED; - debug_console_printf(device->machine, "Stopped on interrupt (CPU '%s', IRQ %d)\n", device->tag.cstr(), irqline); + debug_console_printf(device->machine, "Stopped on interrupt (CPU '%s', IRQ %d)\n", device->tag(), irqline); compute_debug_flags(device); } } @@ -574,7 +574,7 @@ void debug_cpu_exception_hook(running_device *device, int exception) if ((info->flags & DEBUG_FLAG_STOP_EXCEPTION) != 0 && (info->stopexception == -1 || info->stopexception == exception)) { global->execution_state = EXECUTION_STATE_STOPPED; - debug_console_printf(device->machine, "Stopped on exception (CPU '%s', exception %d)\n", device->tag.cstr(), exception); + debug_console_printf(device->machine, "Stopped on exception (CPU '%s', exception %d)\n", device->tag(), exception); compute_debug_flags(device); } } @@ -641,7 +641,7 @@ void debug_cpu_instruction_hook(running_device *device, offs_t curpc) /* check the temp running breakpoint and break if we hit it */ else if ((info->flags & DEBUG_FLAG_STOP_PC) != 0 && info->stopaddr == curpc) { - debug_console_printf(device->machine, "Stopped at temporary breakpoint %X on CPU '%s'\n", info->stopaddr, device->tag.cstr()); + debug_console_printf(device->machine, "Stopped at temporary breakpoint %X on CPU '%s'\n", info->stopaddr, device->tag()); global->execution_state = EXECUTION_STATE_STOPPED; } @@ -2448,7 +2448,7 @@ static running_device *expression_get_device(running_machine *machine, const cha running_device *device; for (device = machine->devicelist.first(); device != NULL; device = device->next) - if (mame_stricmp(device->tag, tag) == 0) + if (mame_stricmp(device->tag(), tag) == 0) return device; return NULL; |
