aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1992-07-10 00:33:05 +0000
committerKen Raeburn <raeburn@cygnus>1992-07-10 00:33:05 +0000
commit7eec00ed5623bc3231f18d8953cedc22dbd91246 (patch)
tree46b21d4ad056cfe117886541cb068116fceff1ac
parentafc5505f00656b96fa787bdabda21e0328262558 (diff)
downloadgdb-7eec00ed5623bc3231f18d8953cedc22dbd91246.zip
gdb-7eec00ed5623bc3231f18d8953cedc22dbd91246.tar.gz
gdb-7eec00ed5623bc3231f18d8953cedc22dbd91246.tar.bz2
print symbolic version of addresses as well as hex
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/i960-pinsn.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 460affc..8cf2b73 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 8e5147e..2569328 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