diff options
| author | 2012-02-04 20:04:49 +0000 | |
|---|---|---|
| committer | 2012-02-04 20:04:49 +0000 | |
| commit | d5620a5bdf31e220bb2b4ff576748a3e429fc608 (patch) | |
| tree | 240ec380971772cc979dbec2f2597d74a412503a /src/emu/debug | |
| parent | a8d9fe50c8cb6a906e8a71dcb82299ca4b763f07 (diff) | |
Root colons not required by default in the debugger for region
lookups. Should address cheat expressions as well.
Diffstat (limited to 'src/emu/debug')
| -rw-r--r-- | src/emu/debug/debugcpu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index e87eaec0c02..ff2c97a1adf 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -1287,6 +1287,11 @@ static UINT64 expression_read_program_direct(address_space *_space, int opcode, static UINT64 expression_read_memory_region(running_machine &machine, const char *rgntag, offs_t address, int size) { + // permit regions to not specify the leading ':' + astring fulltag; + if (rgntag[0] != ':') + rgntag = fulltag.cpy(":").cat(rgntag); + const memory_region *region = machine.region(rgntag); UINT64 result = ~(UINT64)0 >> (64 - 8*size); @@ -1463,6 +1468,11 @@ static void expression_write_program_direct(address_space *_space, int opcode, o static void expression_write_memory_region(running_machine &machine, const char *rgntag, offs_t address, int size, UINT64 data) { + // permit regions to not specify the leading ':' + astring fulltag; + if (rgntag[0] != ':') + rgntag = fulltag.cpy(":").cat(rgntag); + debugcpu_private *global = machine.debugcpu_data; const memory_region *region = machine.region(rgntag); |
