diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-08-21 20:13:08 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-08-21 20:13:08 +0000 |
commit | 029a67e44a62a6048ff821161544a14e536c3f7d (patch) | |
tree | fee33f3c256067e1391e87be727ec16329c0bd34 /gdb/tracepoint.c | |
parent | e84ee2403c3ad46833166512e5f16f189bec2dfd (diff) | |
download | gdb-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/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index e6d579e..671a63a 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -37,6 +37,7 @@ #include "block.h" #include "dictionary.h" #include "observer.h" +#include "user-regs.h" #include "ax.h" #include "ax-gdb.h" @@ -1574,8 +1575,8 @@ encode_actions (struct tracepoint *t, char ***tdp_actions, { const char *name = &exp->elts[2].string; - i = frame_map_name_to_regnum (deprecated_safe_get_selected_frame (), - name, strlen (name)); + i = user_reg_map_name_to_regnum (current_gdbarch, + name, strlen (name)); if (i == -1) internal_error (__FILE__, __LINE__, _("Register $%s not available"), |