+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
/* 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);
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)
{
/* 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)
{
if (myaddr != NULL)
write_register (regnum, *(long *)myaddr);
if (actual_mem_addr != NULL)
- *actual_mem_addr = NULL;
+ *actual_mem_addr = 0;
}
else
{
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);
}
}
write_register (lrnum, read_register (NPC_REGNUM));
}
+static void
reginv_com (args, fromtty)
char *args;
int fromtty;