diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-24 21:38:24 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-24 21:38:24 +0000 |
commit | a1c8d76ef8cc1ddf20b43fe5660ba67a93339808 (patch) | |
tree | 26235bcfa4fead24c6b3fb645f61f90e30f92f38 /gdb/printcmd.c | |
parent | fb2fc3b6b5f8f1f1ef57d4332e63d826c4271deb (diff) | |
download | gdb-a1c8d76ef8cc1ddf20b43fe5660ba67a93339808.zip gdb-a1c8d76ef8cc1ddf20b43fe5660ba67a93339808.tar.gz gdb-a1c8d76ef8cc1ddf20b43fe5660ba67a93339808.tar.bz2 |
* frame.h, symtab.h, findvar.c (read_var_value): Change basereg
support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID.
* dwarfread.c: Use LOC_BASEREG where appropriate.
* Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 79d136c..7409b3a 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -927,50 +927,36 @@ address_info (exp, from_tty) printf ("an argument in register %s", reg_names[val]); break; - case LOC_REGPARM_ADDR: - printf ("address of an argument in register %s", reg_names[val]); - break; - + case LOC_REGPARM_ADDR: + printf ("address of an argument in register %s", reg_names[val]); + break; + case LOC_ARG: - if (SYMBOL_BASEREG_VALID (sym)) - { - printf ("an argument at offset %ld from register %s", - val, reg_names[basereg]); - } - else - { - printf ("an argument at offset %ld", val); - } + printf ("an argument at offset %ld", val); break; case LOC_LOCAL_ARG: - if (SYMBOL_BASEREG_VALID (sym)) - { - printf ("an argument at offset %ld from register %s", - val, reg_names[basereg]); - } - else - { - printf ("an argument at frame offset %ld", val); - } + printf ("an argument at frame offset %ld", val); break; case LOC_LOCAL: - if (SYMBOL_BASEREG_VALID (sym)) - { - printf ("a local variable at offset %ld from register %s", - val, reg_names[basereg]); - } - else - { - printf ("a local variable at frame offset %ld", val); - } + printf ("a local variable at frame offset %ld", val); break; case LOC_REF_ARG: printf ("a reference argument at offset %ld", val); break; + case LOC_BASEREG: + printf ("a variable at offset %ld from register %s", + val, reg_names[basereg]); + break; + + case LOC_BASEREG_ARG: + printf ("an argument at offset %ld from register %s", + val, reg_names[basereg]); + break; + case LOC_TYPEDEF: printf ("a typedef"); break; @@ -1494,6 +1480,8 @@ print_frame_args (func, fi, num, stream) case LOC_REGPARM: case LOC_REGPARM_ADDR: case LOC_LOCAL_ARG: + case LOC_BASEREG: + case LOC_BASEREG_ARG: break; /* Other types of symbols we just skip over. */ |