diff options
author | 2008-09-04 08:55:01 +0000 | |
---|---|---|
committer | 2008-09-04 08:55:01 +0000 | |
commit | cffe2010943845358cf44ae1c4b1f5dc55e845ae (patch) | |
tree | 8b2e8f0bac8eb33dba922065284e6fb64bd387e6 /src/emu/debug/debugcpu.h | |
parent | c1f0164f5d02bf60dce10b58503bd2fea2cec951 (diff) |
From Oliver Stoeneberg [oliverst@online.de]
This contains three different patches:
20080829.patch
Introducing the running_machine* parameter in a few more places. Next
step would be to make the execute_* function aware of it, if that's
OK. Also used the machine parameter in memory.c were it's available.
20080829_1.patch
The already discussed and probably being rejected removal of
dreprecat.h from debugger.h. I think this is a low-risk patch (we had
worse cleanups) and it lowers the risk of new code using deprecated
function beign introduced in MAME/MESS, because there is no invisible
inclusion of deprecat.h anymore (I think one driver - kofball.c - got
it with deprecated code).
20080829_2.patch
The last Machine -> machine conversion I had sitting in my local
tree. I know the proper way is to turn them into devices, but I still
haven't looked into that.
Diffstat (limited to 'src/emu/debug/debugcpu.h')
-rw-r--r-- | src/emu/debug/debugcpu.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/debug/debugcpu.h b/src/emu/debug/debugcpu.h index fc475ecd2bc..b4985354c31 100644 --- a/src/emu/debug/debugcpu.h +++ b/src/emu/debug/debugcpu.h @@ -250,7 +250,7 @@ const debug_cpu_info *debug_get_cpu_info(int cpunum); void debug_cpu_halt_on_next_instruction(running_machine *machine, const char *fmt, ...) ATTR_PRINTF(2,3); int debug_cpu_is_stopped(running_machine *machine); void debug_cpu_trace_printf(int cpunum, const char *fmt, ...) ATTR_PRINTF(2,3); -void debug_cpu_source_script(const char *file); +void debug_cpu_source_script(running_machine *machine, const char *file); void debug_cpu_flush_traces(void); /* debugging hooks */ @@ -272,17 +272,17 @@ void debug_cpu_ignore_cpu(int cpunum, int ignore); void debug_cpu_trace(int cpunum, FILE *file, int trace_over, const char *action); /* breakpoints */ -int debug_cpu_breakpoint_set(int cpunum, offs_t address, parsed_expression *condition, const char *action); -int debug_cpu_breakpoint_clear(int bpnum); -int debug_cpu_breakpoint_enable(int bpnum, int enable); +int debug_cpu_breakpoint_set(running_machine *machine, int cpunum, offs_t address, parsed_expression *condition, const char *action); +int debug_cpu_breakpoint_clear(running_machine *machine, int bpnum); +int debug_cpu_breakpoint_enable(running_machine *machine, int bpnum, int enable); /* watchpoints */ -int debug_cpu_watchpoint_set(int cpunum, int spacenum, int type, offs_t address, offs_t length, parsed_expression *condition, const char *action); -int debug_cpu_watchpoint_clear(int wpnum); -int debug_cpu_watchpoint_enable(int wpnum, int enable); +int debug_cpu_watchpoint_set(running_machine *machine, int cpunum, int spacenum, int type, offs_t address, offs_t length, parsed_expression *condition, const char *action); +int debug_cpu_watchpoint_clear(running_machine *machine, int wpnum); +int debug_cpu_watchpoint_enable(running_machine *machine, int wpnum, int enable); /* hotspots */ -int debug_cpu_hotspot_track(int cpunum, int numspots, int threshhold); +int debug_cpu_hotspot_track(running_machine *machine, int cpunum, int numspots, int threshhold); /* memory accessors */ UINT8 debug_read_byte(int spacenum, offs_t address, int apply_translation); |