From 0ae82382cbffe288df9f0902666c60139d1d0520 Mon Sep 17 00:00:00 2001 From: "therealmogminer@gmail.com" Date: Wed, 8 Jun 2016 20:43:41 +0200 Subject: [PATCH] Fix build on MSVC thanks to Rene, also fix debug_break crashes --- src/devices/bus/isa/s3virge.cpp | 2 +- src/devices/cpu/alph8201/alph8201.cpp | 4 ++-- src/devices/cpu/arm/arm.cpp | 4 ++-- src/devices/cpu/avr8/avr8.cpp | 4 ++-- src/devices/cpu/dsp32/dsp32ops.hxx | 4 ++-- src/devices/cpu/mips/mips3.cpp | 2 +- src/devices/cpu/psx/psx.cpp | 2 +- src/devices/cpu/sh4/sh4.cpp | 4 ++-- src/devices/cpu/tms32031/32031ops.hxx | 2 +- src/devices/cpu/tms32031/tms32031.cpp | 2 +- src/devices/cpu/tms34010/34010ops.hxx | 2 +- src/devices/machine/aakart.cpp | 2 +- src/devices/machine/atahle.cpp | 2 +- src/devices/sound/l7a1045_l6028_dsp_a.cpp | 2 +- src/devices/video/pc_vga.cpp | 2 +- src/emu/debugger.cpp | 3 +-- src/emu/debugger.h | 6 ++++-- src/emu/machine.cpp | 11 +++++++++++ src/emu/machine.h | 1 + src/mame/drivers/atvtrack.cpp | 2 +- src/mame/drivers/icatel.cpp | 2 +- src/mame/drivers/naomi.cpp | 2 +- src/mame/drivers/nokia_3310.cpp | 2 +- src/mame/drivers/pasopia7.cpp | 2 +- src/mame/drivers/pc8801.cpp | 2 +- src/mame/drivers/raiden2.cpp | 2 +- src/mame/drivers/segas24.cpp | 2 +- src/mame/machine/3do.cpp | 2 +- src/mame/machine/dc.cpp | 4 ++-- src/mame/machine/dccons.cpp | 6 +++--- src/mame/machine/mbc55x.cpp | 2 +- src/mame/machine/midwayic.cpp | 2 +- src/mame/machine/tx1.cpp | 4 ++-- src/mame/video/namcos2.cpp | 2 +- src/mame/video/powervr2.cpp | 4 ++-- 35 files changed, 58 insertions(+), 45 deletions(-) diff --git a/src/devices/bus/isa/s3virge.cpp b/src/devices/bus/isa/s3virge.cpp index 979860a233e..1e2ccc27458 100644 --- a/src/devices/bus/isa/s3virge.cpp +++ b/src/devices/bus/isa/s3virge.cpp @@ -244,7 +244,7 @@ UINT8 s3virge_vga_device::s3_crtc_reg_read(UINT8 index) break; default: res = vga.crtc.data[index]; - //machine.debugger().debug_break(); + //machine.debug_break(); //printf("%02x\n",index); break; } diff --git a/src/devices/cpu/alph8201/alph8201.cpp b/src/devices/cpu/alph8201/alph8201.cpp index 7013dedf809..8fa4f51e762 100644 --- a/src/devices/cpu/alph8201/alph8201.cpp +++ b/src/devices/cpu/alph8201/alph8201.cpp @@ -274,7 +274,7 @@ void alpha8201_cpu_device::M_UNDEFINED() osd_printf_debug("alpha8201: PC = %03x, Unimplemented opcode = %02x\n", m_pc.w.l-1, M_RDMEM(m_pc.w.l-1)); #endif #if BREAK_ON_UNKNOWN_OPCODE - machine().debugger().debug_break(); + machine().debug_break(); #endif } @@ -287,7 +287,7 @@ void alpha8201_cpu_device::M_UNDEFINED2() osd_printf_debug("alpha8201: PC = %03x, Unimplemented opcode = %02x,%02x\n", m_pc.w.l-2, op,imm); #endif #if BREAK_ON_UNKNOWN_OPCODE - machine().debugger().debug_break(); + machine().debug_break(); #endif } diff --git a/src/devices/cpu/arm/arm.cpp b/src/devices/cpu/arm/arm.cpp index 01ce6ba96b9..d94534cf515 100644 --- a/src/devices/cpu/arm/arm.cpp +++ b/src/devices/cpu/arm/arm.cpp @@ -1390,7 +1390,7 @@ void arm_cpu_device::HandleCoProVL86C020( UINT32 insn ) 0x00<<0 <- Revision number, 0 */ SetRegister(rn, 0x41560300); - //machine().debugger().debug_break(); + //machine().debug_break(); } else SetRegister(rn, m_coproRegister[crn]); @@ -1407,7 +1407,7 @@ void arm_cpu_device::HandleCoProVL86C020( UINT32 insn ) else { printf("%08x: Unimplemented VL86C020 copro instruction %08x %d %d\n", R15 & 0x3ffffff, insn,rn,crn); - machine().debugger().debug_break(); + machine().debug_break(); } } diff --git a/src/devices/cpu/avr8/avr8.cpp b/src/devices/cpu/avr8/avr8.cpp index 8826ed6b91e..2d2dd04824d 100644 --- a/src/devices/cpu/avr8/avr8.cpp +++ b/src/devices/cpu/avr8/avr8.cpp @@ -706,7 +706,7 @@ void avr8_device::set_lock_bits(const UINT8 byte) void avr8_device::unimplemented_opcode(UINT32 op) { -// machine().debugger().debug_break(); +// machine().debug_break(); fatalerror("AVR8: unknown opcode (%08x) at %08x\n", op, m_shifted_pc); } @@ -2915,7 +2915,7 @@ READ8_MEMBER( avr8_device::regs_r ) default: printf("[%08X] AVR8: Unknown Register Read: 0x%03X\n", m_shifted_pc, offset); -// machine().debugger().debug_break(); +// machine().debug_break(); return 0; } } diff --git a/src/devices/cpu/dsp32/dsp32ops.hxx b/src/devices/cpu/dsp32/dsp32ops.hxx index 768d1704102..e89aa74fed7 100644 --- a/src/devices/cpu/dsp32/dsp32ops.hxx +++ b/src/devices/cpu/dsp32/dsp32ops.hxx @@ -358,7 +358,7 @@ inline void dsp32c_device::dau_set_val_flags(int aidx, double res) else if (absres > 3.40282e38) { m_VUflags = VFLAGBIT; -// machine().debugger().debug_break(); +// machine().debug_break(); // fprintf(stderr, "Result = %g\n", absres); res = (res < 0) ? -3.40282e38 : 3.40282e38; } @@ -403,7 +403,7 @@ inline UINT32 dsp32c_device::double_to_dsp(double val) return 0x00000000; else if (exponent > 255) { -// machine().debugger().debug_break(); +// machine().debug_break(); // fprintf(stderr, "Exponent = %d\n", exponent); return ((INT32)id.i[BYTE_XOR_BE(0)] >= 0) ? 0x7fffffff : 0x800000ff; } diff --git a/src/devices/cpu/mips/mips3.cpp b/src/devices/cpu/mips/mips3.cpp index f2b3252620e..73b5974bab7 100644 --- a/src/devices/cpu/mips/mips3.cpp +++ b/src/devices/cpu/mips/mips3.cpp @@ -224,7 +224,7 @@ void mips3_device::generate_exception(int exception, int backup) if (exception != 0) { fprintf(stderr, "Exception: PC=%08X, PPC=%08X\n", m_core->pc, m_ppc); - machine().debugger().debug_break(); + machine().debug_break(); } */ diff --git a/src/devices/cpu/psx/psx.cpp b/src/devices/cpu/psx/psx.cpp index e2522712961..35667a90374 100644 --- a/src/devices/cpu/psx/psx.cpp +++ b/src/devices/cpu/psx/psx.cpp @@ -299,7 +299,7 @@ WRITE32_MEMBER( psxcpu_device::biu_w ) void psxcpu_device::stop() { - machine().debugger().debug_break(); + machine().debug_break(); debugger_instruction_hook( this, m_pc ); } diff --git a/src/devices/cpu/sh4/sh4.cpp b/src/devices/cpu/sh4/sh4.cpp index 2b906e3600a..3a9a24e1525 100644 --- a/src/devices/cpu/sh4/sh4.cpp +++ b/src/devices/cpu/sh4/sh4.cpp @@ -3028,7 +3028,7 @@ inline void sh34_base_device::op1111_0xf13(const UINT16 opcode) FRCHG(); break; default: - machine().debugger().debug_break(); + machine().debug_break(); break; } } else { @@ -3041,7 +3041,7 @@ inline void sh34_base_device::op1111_0xf13(const UINT16 opcode) void sh34_base_device::dbreak(const UINT16 opcode) { - machine().debugger().debug_break(); + machine().debug_break(); } diff --git a/src/devices/cpu/tms32031/32031ops.hxx b/src/devices/cpu/tms32031/32031ops.hxx index 49af48fbe04..60f2ab5d07f 100644 --- a/src/devices/cpu/tms32031/32031ops.hxx +++ b/src/devices/cpu/tms32031/32031ops.hxx @@ -74,7 +74,7 @@ void tms3203x_device::illegal(UINT32 op) if ((machine().debug_flags & DEBUG_FLAG_ENABLED) != 0) { logerror("Illegal op @ %06X: %08X (tbl=%03X)\n", m_pc - 1, op, op >> 21); - machine().debugger().debug_break(); + machine().debug_break(); } } diff --git a/src/devices/cpu/tms32031/tms32031.cpp b/src/devices/cpu/tms32031/tms32031.cpp index a9ca572d963..69a5de94800 100644 --- a/src/devices/cpu/tms32031/tms32031.cpp +++ b/src/devices/cpu/tms32031/tms32031.cpp @@ -814,7 +814,7 @@ void tms3203x_device::execute_run() { // watch for out-of-range stack pointers if (IREG(TMR_SP) & 0xff000000) - machine().debugger().debug_break(); + machine().debug_break(); if ((IREG(TMR_ST) & RMFLAG) && m_pc == IREG(TMR_RE) + 1) { if ((INT32)--IREG(TMR_RC) >= 0) diff --git a/src/devices/cpu/tms34010/34010ops.hxx b/src/devices/cpu/tms34010/34010ops.hxx index 29f31a0066d..486e4b2cb14 100644 --- a/src/devices/cpu/tms34010/34010ops.hxx +++ b/src/devices/cpu/tms34010/34010ops.hxx @@ -99,7 +99,7 @@ void tms340x0_device::unimpl(UINT16 op) if (m_pc == 0 || s_opcode_table[m_direct->read_word(TOBYTE(m_pc)) >> 4] == &tms34010_device::unimpl) { set_input_line(INPUT_LINE_HALT, ASSERT_LINE); - machine().debugger().debug_break(); + machine().debug_break(); } } diff --git a/src/devices/machine/aakart.cpp b/src/devices/machine/aakart.cpp index 75c947641d4..c7b9e260243 100644 --- a/src/devices/machine/aakart.cpp +++ b/src/devices/machine/aakart.cpp @@ -165,7 +165,7 @@ void aakart_device::device_timer(emu_timer &timer, device_timer_id id, int param READ8_MEMBER( aakart_device::read ) { m_out_tx_cb(CLEAR_LINE); - //machine().debugger().debug_break(); + //machine().debug_break(); return m_rx; } diff --git a/src/devices/machine/atahle.cpp b/src/devices/machine/atahle.cpp index a57ab19d73a..ce25fdcd679 100644 --- a/src/devices/machine/atahle.cpp +++ b/src/devices/machine/atahle.cpp @@ -211,7 +211,7 @@ void ata_hle_device::process_command() m_status |= IDE_STATUS_ERR; m_error = IDE_ERROR_ABRT; set_irq(ASSERT_LINE); - //machine().debugger().debug_break(); + //machine().debug_break(); break; } } diff --git a/src/devices/sound/l7a1045_l6028_dsp_a.cpp b/src/devices/sound/l7a1045_l6028_dsp_a.cpp index 7941c204a28..ef2e4991b9c 100644 --- a/src/devices/sound/l7a1045_l6028_dsp_a.cpp +++ b/src/devices/sound/l7a1045_l6028_dsp_a.cpp @@ -295,7 +295,7 @@ WRITE16_MEMBER(l7a1045_sound_device::sound_data_w) READ16_MEMBER(l7a1045_sound_device::sound_data_r) { //printf("%04x (%04x %04x)\n",offset,m_audioregister,m_audiochannel); - //machine().debugger().debug_break(); + //machine().debug_break(); l7a1045_voice *vptr = &m_voice[m_audiochannel]; switch(m_audioregister) diff --git a/src/devices/video/pc_vga.cpp b/src/devices/video/pc_vga.cpp index 50ffe09b115..c40d801eb11 100644 --- a/src/devices/video/pc_vga.cpp +++ b/src/devices/video/pc_vga.cpp @@ -2664,7 +2664,7 @@ UINT8 s3_vga_device::s3_crtc_reg_read(UINT8 index) break; default: res = vga.crtc.data[index]; - //machine().debugger().debug_break(); + //machine().debug_break(); //printf("%02x\n",index); break; } diff --git a/src/emu/debugger.cpp b/src/emu/debugger.cpp index ca7f86030d1..52031ff7753 100644 --- a/src/emu/debugger.cpp +++ b/src/emu/debugger.cpp @@ -93,8 +93,7 @@ void debugger_interrupt_hook(device_t *device, int irqline) void debugger_manager::debug_break() { - if ((m_machine.debug_flags & DEBUG_FLAG_ENABLED) != 0) - m_cpu->get_visible_cpu()->debug()->halt_on_next_instruction("Internal breakpoint\n"); + m_cpu->get_visible_cpu()->debug()->halt_on_next_instruction("Internal breakpoint\n"); } diff --git a/src/emu/debugger.h b/src/emu/debugger.h index 786df8b27d5..564e24c6cb2 100644 --- a/src/emu/debugger.h +++ b/src/emu/debugger.h @@ -9,8 +9,10 @@ #pragma once -#ifndef EMU_DEBUGGER_H -#define EMU_DEBUGGER_H +#ifndef __DEBUGGER_H__ +#define __DEBUGGER_H__ + +#include "emu.h" class debugger_commands; class debugger_cpu; diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index 5485e2f56e1..0bb7ac0ba37 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -727,6 +727,17 @@ void running_machine::add_logerror_callback(logerror_callback callback) } +//------------------------------------------------- +// debug_break - breaks into the debugger, if +// enabled +//------------------------------------------------- + +void running_machine::debug_break() +{ + if ((debug_flags & DEBUG_FLAG_ENABLED) != 0) + debugger().debug_break(); +} + //------------------------------------------------- // base_datetime - retrieve the time of the host // system; useful for RTC implementations diff --git a/src/emu/machine.h b/src/emu/machine.h index c15a26d3bb0..55af0512525 100644 --- a/src/emu/machine.h +++ b/src/emu/machine.h @@ -212,6 +212,7 @@ public: void call_notifiers(machine_notification which); void add_logerror_callback(logerror_callback callback); void set_ui_active(bool active) { m_ui_active = active; } + void debug_break(); // TODO: Do saves and loads still require scheduling? void immediate_save(const char *filename); diff --git a/src/mame/drivers/atvtrack.cpp b/src/mame/drivers/atvtrack.cpp index 7c469da67f6..34d0b0ccbe8 100644 --- a/src/mame/drivers/atvtrack.cpp +++ b/src/mame/drivers/atvtrack.cpp @@ -167,7 +167,7 @@ inline UINT32 atvtrack_state::decode64_32(offs_t offset64, UINT64 data, UINT64 m return (UINT32)(data >> 32); } logerror("Wrong word size in external access\n"); - //machine().debugger().debug_break(); + //machine().debug_break(); return 0; } diff --git a/src/mame/drivers/icatel.cpp b/src/mame/drivers/icatel.cpp index a7ef81e9aad..2481a5a6521 100644 --- a/src/mame/drivers/icatel.cpp +++ b/src/mame/drivers/icatel.cpp @@ -171,7 +171,7 @@ WRITE8_MEMBER(icatel_state::ci8_w) READ8_MEMBER(icatel_state::ci15_r) { /* TODO: Implement-me! */ - //machine().debugger().debug_break(); + //machine().debug_break(); //logerror("read: ci15\n"); return (1 << 3) | (1 << 0); } diff --git a/src/mame/drivers/naomi.cpp b/src/mame/drivers/naomi.cpp index e7a85e12ac8..1e6fb5cc6e4 100644 --- a/src/mame/drivers/naomi.cpp +++ b/src/mame/drivers/naomi.cpp @@ -1817,7 +1817,7 @@ inline int naomi_state::decode_reg32_64(UINT32 offset, UINT64 mem_mask, UINT64 * if ((mem_mask != U64(0xffffffff00000000)) && (mem_mask != U64(0x00000000ffffffff))) { osd_printf_verbose("%s:Wrong mask!\n", machine().describe_context()); - //machine().debugger().debug_break(); + //machine().debug_break(); } if (mem_mask == U64(0xffffffff00000000)) diff --git a/src/mame/drivers/nokia_3310.cpp b/src/mame/drivers/nokia_3310.cpp index a8a01540c1b..cc1c60b093b 100644 --- a/src/mame/drivers/nokia_3310.cpp +++ b/src/mame/drivers/nokia_3310.cpp @@ -553,7 +553,7 @@ WRITE8_MEMBER(noki3310_state::mad2_io_w) { case 0x02: //printf("DSP %s\n", data & 1 ? "RUN" : "HOLD"); - //if (data & 0x01) machine().debugger().debug_break(); + //if (data & 0x01) machine().debug_break(); break; case 0x08: ack_fiq(data); diff --git a/src/mame/drivers/pasopia7.cpp b/src/mame/drivers/pasopia7.cpp index 0351ad59f16..88f5a79b3df 100644 --- a/src/mame/drivers/pasopia7.cpp +++ b/src/mame/drivers/pasopia7.cpp @@ -818,7 +818,7 @@ WRITE8_MEMBER( pasopia7_state::video_misc_w ) //if(data & 2) //{ // printf("VIDEO MISC %02x\n",data); - // machine().debugger().debug_break(); + // machine().debug_break(); //} m_cursor_blink = data & 0x20; m_attr_wrap = data & 0x10; diff --git a/src/mame/drivers/pc8801.cpp b/src/mame/drivers/pc8801.cpp index fd751075dfa..1ac5739743d 100644 --- a/src/mame/drivers/pc8801.cpp +++ b/src/mame/drivers/pc8801.cpp @@ -2341,7 +2341,7 @@ IRQ_CALLBACK_MEMBER(pc8801_state::pc8801_irq_callback) } printf("IRQ triggered but no vector on the bus! %02x %02x %02x %02x\n",m_i8214_irq_level,m_sound_irq_latch,m_vrtc_irq_latch,m_timer_irq_latch); - machine().debugger().debug_break(); + machine().debug_break(); return 4*2; //TODO: mustn't happen } diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp index bfb55c9d7ae..12b4c257eb0 100644 --- a/src/mame/drivers/raiden2.cpp +++ b/src/mame/drivers/raiden2.cpp @@ -856,7 +856,7 @@ WRITE16_MEMBER(raiden2_state::sprite_prot_src_w) dst1 += 8; } //printf("[%08x] %08x %08x %04x %04x\n",src,dx,dy,dst1,dst2); - //machine().debugger().debug_break(); + //machine().debug_break(); } READ16_MEMBER(raiden2_state::sprite_prot_dst1_r) diff --git a/src/mame/drivers/segas24.cpp b/src/mame/drivers/segas24.cpp index 1aaa7986b8e..9cb65b09071 100644 --- a/src/mame/drivers/segas24.cpp +++ b/src/mame/drivers/segas24.cpp @@ -750,7 +750,7 @@ void segas24_state::reset_reset() m_subcpu->set_input_line(INPUT_LINE_HALT, CLEAR_LINE); m_subcpu->set_input_line(INPUT_LINE_RESET, PULSE_LINE); //osd_printf_debug("enable 2nd cpu!\n"); - //machine().debugger().debug_break(); + //machine().debug_break(); if (m_gground_hack_timer) { m_subcpu->set_clock_scale(0.7f); // reduce clock speed temporarily so a check passes, see notes above diff --git a/src/mame/machine/3do.cpp b/src/mame/machine/3do.cpp index f333745e42a..cb3de112e79 100644 --- a/src/mame/machine/3do.cpp +++ b/src/mame/machine/3do.cpp @@ -1004,7 +1004,7 @@ WRITE32_MEMBER(_3do_state::_3do_clio_w) case 0x17fc/4: /* TODO: DSPP enabled just before enabling DSPP irq! */ if(data & 1) - machine().debugger().debug_break(); + machine().debug_break(); //printf("%08x\n",data); break; diff --git a/src/mame/machine/dc.cpp b/src/mame/machine/dc.cpp index fbb3a1beccd..913567116b7 100644 --- a/src/mame/machine/dc.cpp +++ b/src/mame/machine/dc.cpp @@ -244,7 +244,7 @@ int dc_state::decode_reg32_64(UINT32 offset, UINT64 mem_mask, UINT64 *shift) if ((mem_mask != U64(0xffffffff00000000)) && (mem_mask != U64(0x00000000ffffffff))) { osd_printf_verbose("%s:Wrong mask!\n", machine().describe_context()); - //machine().debugger().debug_break(); + //machine().debug_break(); } if (mem_mask == U64(0xffffffff00000000)) @@ -268,7 +268,7 @@ int dc_state::decode_reg3216_64(UINT32 offset, UINT64 mem_mask, UINT64 *shift) (mem_mask != U64(0xffffffff00000000)) && (mem_mask != U64(0x00000000ffffffff))) { osd_printf_verbose("%s:Wrong mask!\n", machine().describe_context()); - //machine().debugger().debug_break(); + //machine().debug_break(); } if (mem_mask & U64(0x0000ffff00000000)) diff --git a/src/mame/machine/dccons.cpp b/src/mame/machine/dccons.cpp index 0a46f22d77c..2d9b7e7fa59 100644 --- a/src/mame/machine/dccons.cpp +++ b/src/mame/machine/dccons.cpp @@ -119,16 +119,16 @@ READ32_MEMBER(dc_cons_state::dc_mess_g1_ctrl_r ) { case SB_GDSTARD: printf("G1CTRL: GDSTARD %08x\n", atapi_xferbase); // Hello Kitty reads here - machine().debugger().debug_break(); + machine().debug_break(); return atapi_xferbase; case SB_GDST: break; case SB_GDLEND: - //machine().debugger().debug_break(); + //machine().debug_break(); return atapi_xferlen; // TODO: check me default: printf("G1CTRL: Unmapped read %08x\n", 0x5f7400+offset*4); - machine().debugger().debug_break(); + machine().debug_break(); break; } return g1bus_regs[offset]; diff --git a/src/mame/machine/mbc55x.cpp b/src/mame/machine/mbc55x.cpp index a9bb0f557c8..a9cb70cc35e 100644 --- a/src/mame/machine/mbc55x.cpp +++ b/src/mame/machine/mbc55x.cpp @@ -414,6 +414,6 @@ static void decode_dos21(device_t *device,offs_t pc) if((ax & 0xff00)==0x0900) { - device->machine().debugger().debug_break(); + device->machine().debug_break(); } } diff --git a/src/mame/machine/midwayic.cpp b/src/mame/machine/midwayic.cpp index 5870482fabd..2816992b3e0 100644 --- a/src/mame/machine/midwayic.cpp +++ b/src/mame/machine/midwayic.cpp @@ -377,7 +377,7 @@ WRITE8_MEMBER(midway_serial_pic2_device::write) memcpy(m_buffer, m_data, 16); m_total = 16; m_index = 0; - machine().debugger().debug_break(); + machine().debug_break(); } break; diff --git a/src/mame/machine/tx1.cpp b/src/mame/machine/tx1.cpp index 0237f2d6fc0..2366136bb30 100644 --- a/src/mame/machine/tx1.cpp +++ b/src/mame/machine/tx1.cpp @@ -1241,13 +1241,13 @@ WRITE16_MEMBER(tx1_state::buggyboy_math_w) else { osd_printf_debug("BB_DSEL was not 3 for P->S load!\n"); - machine().debugger().debug_break(); + machine().debug_break(); } } else { osd_printf_debug("Buggy Boy unknown math state!\n"); - machine().debugger().debug_break(); + machine().debug_break(); } if (offset & BB_INSLD) diff --git a/src/mame/video/namcos2.cpp b/src/mame/video/namcos2.cpp index 26945737f2e..21e1979caf0 100644 --- a/src/mame/video/namcos2.cpp +++ b/src/mame/video/namcos2.cpp @@ -294,7 +294,7 @@ WRITE16_MEMBER( namcos2_state::rozram_word_w ) m_tilemap_roz->mark_tile_dirty(offset); //if( space.machine().input().code_pressed(KEYCODE_Q) ) //{ - // machine().debugger().debug_break(); + // machine().debug_break(); //} } diff --git a/src/mame/video/powervr2.cpp b/src/mame/video/powervr2.cpp index f0d2610945b..b2f05d94069 100644 --- a/src/mame/video/powervr2.cpp +++ b/src/mame/video/powervr2.cpp @@ -1502,13 +1502,13 @@ WRITE32_MEMBER( powervr2_device::ta_yuv_tex_ctrl_w ) /* TODO */ READ32_MEMBER( powervr2_device::ta_yuv_tex_cnt_r ) { - machine().debugger().debug_break(); + machine().debug_break(); return ta_yuv_tex_cnt; } WRITE32_MEMBER( powervr2_device::ta_yuv_tex_cnt_w ) { - machine().debugger().debug_break(); + machine().debug_break(); COMBINE_DATA(&ta_yuv_tex_cnt); }