diff options
author | Stu Grossman <grossman@cygnus> | 1993-02-19 06:48:52 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1993-02-19 06:48:52 +0000 |
commit | b9163d1aaa910ee7b98ce1180742cb065e085c15 (patch) | |
tree | 8ba54e528b082242c8906f4b161ffbc284edf876 /gdb/am29k-tdep.c | |
parent | fb8ecc3dc66057e3a46c17c358695903fe9b69f2 (diff) | |
download | gdb-b9163d1aaa910ee7b98ce1180742cb065e085c15.zip gdb-b9163d1aaa910ee7b98ce1180742cb065e085c15.tar.gz gdb-b9163d1aaa910ee7b98ce1180742cb065e085c15.tar.bz2 |
* am29k-pinsn.c (print_insn): Minor nits with const.
* am29k-tdep.c: More minor nits with arg types for
supply_register, NULL vs. 0, read_register_gen, & reginv_com.
Diffstat (limited to 'gdb/am29k-tdep.c')
-rw-r--r-- | gdb/am29k-tdep.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/am29k-tdep.c b/gdb/am29k-tdep.c index 13aca9a..b81ab6d 100644 --- a/gdb/am29k-tdep.c +++ b/gdb/am29k-tdep.c @@ -518,7 +518,7 @@ read_register_stack (memaddr, myaddr, actual_mem_addr, lval) int regnum = (memaddr - rsp) / 4 + LR0_REGNUM; if (myaddr != NULL) *(int*)myaddr = val; /* Provide bogusness */ - supply_register(regnum,&val); /* More bogusness */ + supply_register(regnum, (char *)&val); /* More bogusness */ if (lval != NULL) *lval = lval_register; if (actual_mem_addr != NULL) @@ -578,7 +578,7 @@ write_register_stack (memaddr, myaddr, actual_mem_addr) { /* It's in a register, but off the end of the stack. */ if (actual_mem_addr != NULL) - *actual_mem_addr = NULL; + *actual_mem_addr = 0; } else if (memaddr < rfb) { @@ -589,7 +589,7 @@ write_register_stack (memaddr, myaddr, actual_mem_addr) if (myaddr != NULL) write_register (regnum, *(long *)myaddr); if (actual_mem_addr != NULL) - *actual_mem_addr = NULL; + *actual_mem_addr = 0; } else { @@ -769,8 +769,8 @@ push_dummy_frame () for (i = 0; i < num_bytes; i += 4) { /* Note: word is in target byte order. */ - read_register_gen (LR0_REGNUM + i / 4, &word); - write_memory (rfb - num_bytes + i, &word, 4); + read_register_gen (LR0_REGNUM + i / 4, (char *) &word); + write_memory (rfb - num_bytes + i, (char *) &word, 4); } } @@ -797,6 +797,7 @@ push_dummy_frame () write_register (lrnum, read_register (NPC_REGNUM)); } +static void reginv_com (args, fromtty) char *args; int fromtty; |