diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/am29k-pinsn.c | 2 | ||||
-rw-r--r-- | gdb/am29k-tdep.c | 11 |
3 files changed, 13 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f426654..296d852 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com) + + * 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. + Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com) * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not diff --git a/gdb/am29k-pinsn.c b/gdb/am29k-pinsn.c index 337bf90..36b7344 100644 --- a/gdb/am29k-pinsn.c +++ b/gdb/am29k-pinsn.c @@ -127,7 +127,7 @@ print_insn (memaddr, stream) /* The four bytes of the instruction. */ unsigned char insn24, insn16, insn8, insn0; - struct a29k_opcode *opcode; + struct a29k_opcode const * opcode; read_memory (memaddr, &insn[0], 4); 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; |