print symbolic version of addresses as well as hex
authorKen Raeburn <raeburn@cygnus>
Fri, 10 Jul 1992 00:33:05 +0000 (00:33 +0000)
committerKen Raeburn <raeburn@cygnus>
Fri, 10 Jul 1992 00:33:05 +0000 (00:33 +0000)
gdb/ChangeLog
gdb/i960-pinsn.c

index 460affc5823ddb221577d3db36ffae44aff86d2a..8cf2b7367e94c6b3c759eda105b6ba5d3e4bb6c5 100644 (file)
@@ -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
index 8e5147eac24073cd36565a90a7871c047da1d56a..2569328d6a507a3fdb073d4f3df1854faf8b58bb 100644 (file)
@@ -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