diff options
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index ad94018..bbfef3e 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1105,7 +1105,6 @@ address_info (char *exp, int from_tty) break; case LOC_COMPUTED: - case LOC_COMPUTED_ARG: /* FIXME: cagney/2004-01-26: It should be possible to unconditionally call the SYMBOL_OPS method when available. Unfortunately DWARF 2 stores the frame-base (instead of the @@ -1115,7 +1114,11 @@ address_info (char *exp, int from_tty) break; case LOC_REGISTER: - printf_filtered (_("a variable in register %s"), + if (SYMBOL_IS_ARGUMENT (sym)) + printf_filtered (_("an argument in register %s"), + gdbarch_register_name (current_gdbarch, val)); + else + printf_filtered (_("a variable in register %s"), gdbarch_register_name (current_gdbarch, val)); break; @@ -1132,11 +1135,6 @@ address_info (char *exp, int from_tty) } break; - case LOC_REGPARM: - printf_filtered (_("an argument in register %s"), - gdbarch_register_name (current_gdbarch, val)); - break; - case LOC_REGPARM_ADDR: printf_filtered (_("address of an argument in register %s"), gdbarch_register_name (current_gdbarch, val)); |