From: Ken Raeburn Date: Fri, 10 Jul 1992 00:33:05 +0000 (+0000) Subject: print symbolic version of addresses as well as hex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7eec00ed5623bc3231f18d8953cedc22dbd91246;p=binutils-gdb.git print symbolic version of addresses as well as hex --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 460affc5823..8cf2b7367e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com) + * i960-pinsn.c (mem): Variables reg[123] should point to CONST. + (print_addr): Call print_address to show symbolic version as well. + * remote-vx.c (vx_kill): Don't look for arguments; they aren't being passed. (vx_read_register): Declare inferior_fp_regs. Delete code for diff --git a/gdb/i960-pinsn.c b/gdb/i960-pinsn.c index 8e5147eac24..2569328d6a5 100644 --- a/gdb/i960-pinsn.c +++ b/gdb/i960-pinsn.c @@ -328,7 +328,7 @@ mem( memaddr, word1, word2, noprint ) int len; int mode; int offset; - char *reg1, *reg2, *reg3; + CONST char *reg1, *reg2, *reg3; /* This lookup table is too sparse to make it worth typing in, but not * so large as to make a sparse array necessary. We allocate the @@ -822,7 +822,7 @@ invalid( word1 ) static void print_addr(a) { - fprintf( stream, "0x%x", a ); + print_address (a, stream); } static void