* printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
authorSteve Chamberlain <sac@cygnus>
Tue, 3 Mar 1992 07:07:26 +0000 (07:07 +0000)
committerSteve Chamberlain <sac@cygnus>
Tue, 3 Mar 1992 07:07:26 +0000 (07:07 +0000)
it before printing out the hex shape of an address.

gdb/printcmd.c

index 9e75ab2d22b7648c976ccf4efeedd1dec244dd47..d2d867ae2cf8c78bed956a409dcfb0568db15dcd 100644 (file)
@@ -75,8 +75,6 @@ int current_display_number;
 
 int inspect_it = 0;
 
-enum display_status {disabled, enabled};
-
 struct display
 {
   /* Chain link to next auto-display item.  */
@@ -90,7 +88,7 @@ struct display
   /* Innermost block required by this expression when evaluated */
   struct block *block;
   /* Status of this display (enabled or disabled) */
-  enum display_status status;
+  enum enable status;
 };
 
 /* Chain of expressions whose values should be displayed
@@ -600,7 +598,11 @@ print_address (addr, stream)
      CORE_ADDR addr;
      FILE *stream;
 {
+#ifdef ADDR_BITS_REMOVE
+  fprintf_filtered (stream, local_hex_format(), ADDR_BITS_REMOVE(addr));
+#else
   fprintf_filtered (stream, local_hex_format(), addr);
+#endif
   print_address_symbolic (addr, stream, asm_demangle, " ");
 }
 
@@ -1553,6 +1555,13 @@ print_frame_args (func, fi, num, stream)
         two entries (one a parameter, one a register or local), and the one
         we want is the non-parm, which lookup_symbol will find for
         us.  After this, sym could be any SYMBOL_CLASS...  */
+#ifdef IBM6000
+      /* AIX/RS6000 implements a concept of traceback tables, in which case
+         it creates nameless parameters. Looking for those parameter symbols
+        will result in an error. */
+
+      if ( *SYMBOL_NAME (sym))
+#endif
       sym = lookup_symbol (SYMBOL_NAME (sym),
                    b, VAR_NAMESPACE, (int *)NULL, (struct symtab **)NULL);
 
This page took 0.027567 seconds and 4 git commands to generate.