From b9163d1aaa910ee7b98ce1180742cb065e085c15 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Fri, 19 Feb 1993 06:48:52 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/am29k-pinsn.c | 2 +- gdb/am29k-tdep.c | 11 ++++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f4266545856..296d85253e0 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 337bf90c34b..36b73449ef2 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 13aca9a2cb2..b81ab6d431c 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; -- 2.30.2