mame/src/emu/debug
Aaron Giles 4b3aa02618 Added device_t::memory() to fetch a reference to the memory interface,
or assert if not present.

Split address_space::install_[legacy_]handler into 
install_[legacy_]read_handler, install_[legacy_]write_handler,
and install_[legacy_]readwrite_handler.

Added variants of address_space handler installers which don't take
mirror or mask parameters, since this is by far the most common case.

Deprecated API cleanup. Simple search & replace:
cpu_suspend                          ==> device_suspend
cpu_resume                           ==> device_resume
cpu_yield                            ==> device_yield
cpu_spin                             ==> device_spin
cpu_spinuntil_trigger                ==> device_spin_until_trigger
cpu_spinuntil_time                   ==> device_spin_until_time
cpu_spinuntil_int                    ==> device_spin_until_interrupt
cpu_eat_cycles                       ==> device_eat_cycles
cpu_adjust_icount                    ==> device_adjust_icount
cpu_triggerint                       ==> device_triggerint
cpu_set_input_line                   ==> device_set_input_line
cpu_set_input_line_vector            ==> device_set_input_line_vector
cpu_set_input_line_and_vector        ==> device_set_input_line_and_vector
cpu_set_irq_callback                 ==> device_set_irq_callback

More complex changes:
device_memory(device)                ==>  device->memory()
device_get_space(device, spacenum)   ==>  device->memory().space(spacenum)
cpu_get_address_space(cpu, spacenum) ==> cpu->memory().space(spacenum)
cputag_get_address_space(mach, tag, spacenum) ==> mach->device("tag")->memory().space(spacenum)
cputag_get_clock(mach, tag)          ==> mach->device("tag")->unscaled_clock()
cputag_set_clock(mach, tag, hz)      ==> mach->device("tag")->set_unscaled_clock(hz)

Some regex'es for the more prevalent cases above:
S: cpu_get_address_space( *)\(( *)([^,]+)( *), *
R: \3->memory().space\1\(\2
S: cputag_get_address_space( *)\(( *)([^,]+)( *),( *)([^,]+)( *), *
R: \3->device\1\(\2\6\7\)->memory().space\1\(\2
S: cputag_get_clock( *)\(( *)([^,]+)( *),( *)([^ )]+) *\)
R: \3->device\1\(\2\6\7\)->unscaled_clock\(\)
2011-03-27 01:19:26 +00:00
..
debugcmd.c Added device_t::memory() to fetch a reference to the memory interface, 2011-03-27 01:19:26 +00:00
debugcmd.h Replace "const address_space" with "address_space" throughout the system. 2010-08-19 07:26:14 +00:00
debugcon.c Converted the expression engine to C++, did the usual cleanup. 2010-11-01 07:48:02 +00:00
debugcon.h Split mame.c into mame.c and machine.c, the latter containing the 2010-06-30 03:46:21 +00:00
debugcpu.c Added device_t::memory() to fetch a reference to the memory interface, 2011-03-27 01:19:26 +00:00
debugcpu.h Cleanups and version bump. 2011-02-09 15:01:01 +00:00
debughlp.c Cleanups and version bump. 2011-02-09 15:01:01 +00:00
debughlp.h Copyright cleanup: 2008-01-06 00:47:40 +00:00
debugvw.c Cleanup & version bump. 2010-11-08 09:08:55 +00:00
debugvw.h Converted the expression engine to C++, did the usual cleanup. 2010-11-01 07:48:02 +00:00
dvdisasm.c Fix disassembler override hook [Aaron Giles] 2011-02-19 19:25:30 +00:00
dvdisasm.h Integrated comments into debugcpu.c, and removed debugcmt.c. Modernized 2010-09-05 06:12:47 +00:00
dvmemory.c Moved the state saving system to C++. For now the registration macros 2011-02-08 06:48:39 +00:00
dvmemory.h Ok, last major rename for this round: 2011-01-01 00:41:25 +00:00
dvstate.c Debugger : Removed stray garbage characters from beamx, beamy, and frame counter displays. [Robbbert] 2010-07-22 13:24:52 +00:00
dvstate.h Cleanups and version bump. 2010-07-06 17:30:28 +00:00
dvtext.c C++-ified the debugger views. Not quite architecturally where I would 2010-06-25 05:11:42 +00:00
dvtext.h C++-ified the debugger views. Not quite architecturally where I would 2010-06-25 05:11:42 +00:00
express.c Move generic templates from emucore.h to emutempl.h. 2011-02-07 05:47:17 +00:00
express.h Move generic templates from emucore.h to emutempl.h. 2011-02-07 05:47:17 +00:00
textbuf.c All files modified here solely depend on osdcore.h. Therefore changed all malloc/free to osd_malloc and osd_free. 2010-01-17 19:19:48 +00:00
textbuf.h Eliminated osd_cpu.h. 2009-10-12 08:37:04 +00:00