diff options
author | Steve Chamberlain <sac@cygnus> | 1992-03-03 07:07:26 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-03-03 07:07:26 +0000 |
commit | 8f869b455131e98f47988cff2ddef08970fead34 (patch) | |
tree | 07ed7b8af8e7c3872aacfa3005d5fcefe26b39d0 /gdb | |
parent | 96743d3c3033705c391308b45e61686b10dba1d5 (diff) | |
download | gdb-8f869b455131e98f47988cff2ddef08970fead34.zip gdb-8f869b455131e98f47988cff2ddef08970fead34.tar.gz gdb-8f869b455131e98f47988cff2ddef08970fead34.tar.bz2 |
* printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
it before printing out the hex shape of an address.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/printcmd.c | 15 |
1 files changed, 12 insertions, 3 deletions
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); |