summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-08-19 07:26:14 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-08-19 07:26:14 +0000
commit3598b772bc80b2efb6396c65996462b38eedc593 (patch)
treee975a31f1f8599b8a947b11675b674fd993accf2 /src/emu/debug/debugcmd.c
parentdd19e512c03c58a100ae5025c9fd7624387667fd (diff)
Replace "const address_space" with "address_space" throughout the system.
The purpose of making it const before was to discourage direct tampering, but private/protected does a better job of that now anyhow, and it is annoying now. s/const[ \t]+address_space\b/address_space/g; Is basically what I did.
Diffstat (limited to 'src/emu/debug/debugcmd.c')
-rw-r--r--src/emu/debug/debugcmd.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index c639226240d..03b7b038bb3 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -161,7 +161,7 @@ static void execute_hardreset(running_machine *machine, int ref, int params, con
given address is valid for cheating
-------------------------------------------------*/
-INLINE int cheat_address_is_valid(const address_space *space, offs_t address)
+INLINE int cheat_address_is_valid(address_space *space, offs_t address)
{
return debug_cpu_translate(space, TRANSLATE_READ, &address) && (memory_get_write_ptr(space, address) != NULL);
}
@@ -210,7 +210,7 @@ INLINE UINT64 cheat_byte_swap(const cheat_system *cheatsys, UINT64 value)
and swapping if necessary
-------------------------------------------------*/
-INLINE UINT64 cheat_read_extended(const cheat_system *cheatsys, const address_space *space, offs_t address)
+INLINE UINT64 cheat_read_extended(const cheat_system *cheatsys, address_space *space, offs_t address)
{
return cheat_sign_extend(cheatsys, cheat_byte_swap(cheatsys, debug_read_memory(space, address, cheatsys->width, TRUE)));
}
@@ -554,7 +554,7 @@ int debug_command_parameter_cpu(running_machine *machine, const char *param, dev
address space
-------------------------------------------------*/
-int debug_command_parameter_cpu_space(running_machine *machine, const char *param, int spacenum, const address_space **result)
+int debug_command_parameter_cpu_space(running_machine *machine, const char *param, int spacenum, address_space **result)
{
device_t *cpu;
@@ -1305,7 +1305,7 @@ static void execute_bplist(running_machine *machine, int ref, int params, const
static void execute_wpset(running_machine *machine, int ref, int params, const char *param[])
{
parsed_expression *condition = NULL;
- const address_space *space;
+ address_space *space;
const char *action = NULL;
UINT64 address, length;
int type = 0;
@@ -1511,7 +1511,7 @@ static void execute_hotspot(running_machine *machine, int ref, int params, const
static void execute_save(running_machine *machine, int ref, int params, const char *param[])
{
UINT64 offset, endoffset, length;
- const address_space *space;
+ address_space *space;
FILE *f;
UINT64 i;
@@ -1555,7 +1555,7 @@ static void execute_save(running_machine *machine, int ref, int params, const ch
static void execute_dump(running_machine *machine, int ref, int params, const char *param[])
{
UINT64 offset, endoffset, length, width = 0, ascii = 1;
- const address_space *space;
+ address_space *space;
FILE *f = NULL;
UINT64 i, j;
@@ -1653,7 +1653,7 @@ static void execute_dump(running_machine *machine, int ref, int params, const ch
static void execute_cheatinit(running_machine *machine, int ref, int params, const char *param[])
{
UINT64 offset, length = 0, real_length = 0;
- const address_space *space;
+ address_space *space;
UINT32 active_cheat = 0;
UINT64 curaddr;
UINT8 i, region_count = 0;
@@ -1815,7 +1815,7 @@ static void execute_cheatinit(running_machine *machine, int ref, int params, con
static void execute_cheatnext(running_machine *machine, int ref, int params, const char *param[])
{
- const address_space *space;
+ address_space *space;
UINT64 cheatindex;
UINT32 active_cheat = 0;
UINT8 condition;
@@ -1984,7 +1984,7 @@ static void execute_cheatnext(running_machine *machine, int ref, int params, con
static void execute_cheatlist(running_machine *machine, int ref, int params, const char *param[])
{
char spaceletter, sizeletter;
- const address_space *space;
+ address_space *space;
device_t *cpu;
UINT32 active_cheat = 0;
UINT64 cheatindex;
@@ -2079,7 +2079,7 @@ static void execute_cheatundo(running_machine *machine, int ref, int params, con
static void execute_find(running_machine *machine, int ref, int params, const char *param[])
{
UINT64 offset, endoffset, length;
- const address_space *space;
+ address_space *space;
UINT64 data_to_find[256];
UINT8 data_size[256];
int cur_data_size;
@@ -2179,7 +2179,7 @@ static void execute_dasm(running_machine *machine, int ref, int params, const ch
{
UINT64 offset, length, bytes = 1;
int minbytes, maxbytes, byteswidth;
- const address_space *space;
+ address_space *space;
FILE *f = NULL;
int i, j;
@@ -2373,7 +2373,7 @@ static void execute_traceflush(running_machine *machine, int ref, int params, co
static void execute_history(running_machine *machine, int ref, int params, const char *param[])
{
/* validate parameters */
- const address_space *space;
+ address_space *space;
if (!debug_command_parameter_cpu_space(machine, (params > 0) ? param[0] : NULL, ADDRESS_SPACE_PROGRAM, &space))
return;
@@ -2473,7 +2473,7 @@ static void execute_source(running_machine *machine, int ref, int params, const
static void execute_map(running_machine *machine, int ref, int params, const char *param[])
{
- const address_space *space;
+ address_space *space;
offs_t taddress;
UINT64 address;
int intention;