From 8f869b455131e98f47988cff2ddef08970fead34 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Tue, 3 Mar 1992 07:07:26 +0000 Subject: * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use it before printing out the hex shape of an address. --- gdb/printcmd.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 9e75ab2..d2d867a 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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); -- cgit v1.1