From 7eec00ed5623bc3231f18d8953cedc22dbd91246 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 10 Jul 1992 00:33:05 +0000 Subject: [PATCH] print symbolic version of addresses as well as hex --- gdb/ChangeLog | 3 +++ gdb/i960-pinsn.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 460affc582..8cf2b7367e 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 8e5147eac2..2569328d6a 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