* 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.
This commit is contained in:
Stu Grossman 1993-02-19 06:48:52 +00:00
parent fb8ecc3dc6
commit b9163d1aaa
3 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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);

View File

@ -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;