diff options
author | Ken Raeburn <raeburn@cygnus> | 1992-07-10 00:33:05 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1992-07-10 00:33:05 +0000 |
commit | 7eec00ed5623bc3231f18d8953cedc22dbd91246 (patch) | |
tree | 46b21d4ad056cfe117886541cb068116fceff1ac /gdb/i960-pinsn.c | |
parent | afc5505f00656b96fa787bdabda21e0328262558 (diff) | |
download | gdb-7eec00ed5623bc3231f18d8953cedc22dbd91246.zip gdb-7eec00ed5623bc3231f18d8953cedc22dbd91246.tar.gz gdb-7eec00ed5623bc3231f18d8953cedc22dbd91246.tar.bz2 |
print symbolic version of addresses as well as hex
Diffstat (limited to 'gdb/i960-pinsn.c')
-rw-r--r-- | gdb/i960-pinsn.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |