aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-08-21 20:13:08 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-08-21 20:13:08 +0000
commit029a67e44a62a6048ff821161544a14e536c3f7d (patch)
treefee33f3c256067e1391e87be727ec16329c0bd34 /gdb/frame.c
parente84ee2403c3ad46833166512e5f16f189bec2dfd (diff)
downloadgdb-029a67e44a62a6048ff821161544a14e536c3f7d.zip
gdb-029a67e44a62a6048ff821161544a14e536c3f7d.tar.gz
gdb-029a67e44a62a6048ff821161544a14e536c3f7d.tar.bz2
* frame.h (frame_map_regnum_to_name): Remove prototype.
(frame_map_name_to_regnum): Remove prototype. * frame.c (frame_map_regnum_to_name): Remove. (frame_map_name_to_regnum): Remove. (frame_unwind_register_value): Use user_reg_map_regnum_to_name instead of frame_map_regnum_to_name. * ax-gdb.c: Include "user-regs.h". (gen_expr): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * eval.c: Include "user-regs.h". (evaluate_subexp_standard): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * infcmd.c (registers_info): Likewise. * parse.c: Include "user-regs.h". (write_dollar_variable): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * tracepoint.c: Include "user-regs.h". (encode_actions): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * valops.c: Include "user-regs.h". (value_fetch_lazy): Use user_reg_map_regnum_to_name instead of frame_map_regnum_to_name.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index f5e0fad..c4f85fe 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -619,7 +619,8 @@ frame_unwind_register_value (struct frame_info *frame, int regnum)
fprintf_unfiltered (gdb_stdlog, "\
{ frame_unwind_register_value (frame=%d,regnum=%d(%s),...) ",
frame->level, regnum,
- frame_map_regnum_to_name (frame, regnum));
+ user_reg_map_regnum_to_name
+ (get_frame_arch (frame), regnum));
}
/* Find the unwinder. */
@@ -834,22 +835,6 @@ put_frame_register_bytes (struct frame_info *frame, int regnum,
}
}
-/* Map between a frame register number and its name. A frame register
- space is a superset of the cooked register space --- it also
- includes builtin registers. */
-
-int
-frame_map_name_to_regnum (struct frame_info *frame, const char *name, int len)
-{
- return user_reg_map_name_to_regnum (get_frame_arch (frame), name, len);
-}
-
-const char *
-frame_map_regnum_to_name (struct frame_info *frame, int regnum)
-{
- return user_reg_map_regnum_to_name (get_frame_arch (frame), regnum);
-}
-
/* Create a sentinel frame. */
static struct frame_info *