diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-02-27 19:46:04 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-02-27 19:46:04 +0000 |
commit | 206415a3eac4f69d24cf872f880f554d3d43f1bb (patch) | |
tree | ad72202befac2e3d20e6769060ab6c0c6384d824 /gdb/varobj.c | |
parent | e1c9b6f16a257b4ffff961d59fc9204847eca1f4 (diff) | |
download | gdb-206415a3eac4f69d24cf872f880f554d3d43f1bb.zip gdb-206415a3eac4f69d24cf872f880f554d3d43f1bb.tar.gz gdb-206415a3eac4f69d24cf872f880f554d3d43f1bb.tar.bz2 |
* frame.c (deprecated_selected_frame): Rename to...
(selected_frame): ...this. Make static.
(get_selected_frame, select_frame): Update.
* frame.h (deprected_select_frame): Delete.
(deprecated_safe_get_selected_frame): Update comments.
* breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
tui/tui.c: Replace references to deprecated_selected_frame.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 21d8337..a2fd1c8 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -440,7 +440,7 @@ varobj_create (char *objname, /* Allow creator to specify context of variable */ if ((type == USE_CURRENT_FRAME) || (type == USE_SELECTED_FRAME)) - fi = deprecated_selected_frame; + fi = deprecated_safe_get_selected_frame (); else /* FIXME: cagney/2002-11-23: This code should be doing a lookup using the frame ID and not just the frame's @@ -487,7 +487,7 @@ varobj_create (char *objname, if (fi != NULL) { var->root->frame = get_frame_id (fi); - old_fi = deprecated_selected_frame; + old_fi = get_selected_frame (NULL); select_frame (fi); } @@ -1064,7 +1064,7 @@ varobj_update (struct varobj **varp, struct varobj ***changelist) /* Save the selected stack frame, since we will need to change it in order to evaluate expressions. */ - old_fid = get_frame_id (deprecated_selected_frame); + old_fid = get_frame_id (deprecated_safe_get_selected_frame ()); /* Update the root variable. value_of_root can return NULL if the variable is no longer around, i.e. we stepped out of |