*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / printcmd.c
index 9e75ab2d22b7648c976ccf4efeedd1dec244dd47..db0394eb93c9bee1f9562a09826a9832ce494ffd 100644 (file)
@@ -17,9 +17,8 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#include <stdio.h>
-#include <string.h>
 #include "defs.h"
+#include <string.h>
 #include "frame.h"
 #include "symtab.h"
 #include "gdbtypes.h"
@@ -75,8 +74,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 +87,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 +597,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 +1554,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_TARGET
+      /* 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.024612 seconds and 4 git commands to generate.