diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-07-07 14:36:58 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-07-07 14:36:58 +0000 |
commit | eb8bc2821737a21e228c59dfce228e03cb7586a8 (patch) | |
tree | 814fd415266ca957741bcbd1850b95ece7b06164 /gdb/expprint.c | |
parent | 15f8604d21deffab6450bd32418774857104503d (diff) | |
download | gdb-eb8bc2821737a21e228c59dfce228e03cb7586a8.zip gdb-eb8bc2821737a21e228c59dfce228e03cb7586a8.tar.gz gdb-eb8bc2821737a21e228c59dfce228e03cb7586a8.tar.bz2 |
2003-07-07 Andrew Cagney <cagney@redhat.com>
* expprint.c: Include "user-regs.h" instead of "frame.h".
(print_subexp): Use user_reg_map_regnum_to_name, instead of
frame_map_regnum_to_name.
* frame.c: Include "user-regs.h" instead of "builtin-regs.h".
(frame_map_name_to_regnum): Simplify, call
user_reg_map_name_to_regnum.
(frame_map_regnum_to_name): Simplify, call
user_reg_map_regnum_to_name.
(frame_register_unwind): Update.
* std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
(_initialize_frame_reg): Call user_reg_add_builtin.
* findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
(value_of_register): Use value_of_user_reg.
* eval.c (evaluate_subexp_standard): Update.
* parse.c (write_dollar_variable): Update.
* d10v-tdep.c (d10v_print_registers_info): Update.
* infcmd.c (registers_info): Update.
* Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
(builtin_regs_h): Delete macro.
(user_regs_h): Define.
(COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
(builtin-regs.o): Delete target.
(user-regs.o): Specify dependencies.
(expprint.o): Update dependencies.
(findvar.o): Update dependencies.
(frame.o): Update dependencies.
(std-regs.o): Update dependencies.
Diffstat (limited to 'gdb/expprint.c')
-rw-r--r-- | gdb/expprint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c index d0e940b..bbc63e7 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -27,7 +27,7 @@ #include "value.h" #include "language.h" #include "parser-defs.h" -#include "frame.h" /* For frame_map_regnum_to_name. */ +#include "user-regs.h" /* For user_reg_map_regnum_to_name. */ #include "target.h" #include "gdb_string.h" #include "block.h" @@ -126,8 +126,10 @@ print_subexp (register struct expression *exp, register int *pos, case OP_REGISTER: { int regnum = longest_to_int (exp->elts[pc + 1].longconst); + const char *name = user_reg_map_regnum_to_name (current_gdbarch, + regnum); (*pos) += 2; - fprintf_filtered (stream, "$%s", frame_map_regnum_to_name (regnum)); + fprintf_filtered (stream, "$%s", name); return; } |