mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
* frame.h (select_frame): Delete level parameter.
* stack.c (select_frame): Update. Use frame_relative_level to obtain the frame's level. (select_and_print_frame): Update call. (select_frame_command): Ditto. (up_silently_base): Ditto. (down_silently_base): Ditto. * ocd.c (ocd_start_remote): Ditto. * remote-rdp.c (remote_rdp_open): Ditto. * remote-mips.c (mips_initialize): Ditto. (common_open): Ditto. * remote-e7000.c (e7000_start_remote): Ditto. * m3-nat.c (select_thread): Ditto. * hppa-tdep.c (child_get_current_exception_event): Ditto. (child_get_current_exception_event): Ditto. * varobj.c (varobj_create): Ditto. (varobj_update): Ditto. (c_value_of_root): Ditto. * tracepoint.c (finish_tfind_command): Ditto. * corelow.c (core_open): Ditto. * arch-utils.c (generic_prepare_to_proceed): Ditto. * thread.c (info_threads_command): Ditto. (switch_to_thread): Ditto. * infrun.c (normal_stop): Ditto. (restore_selected_frame): Ditto. (restore_inferior_status): Ditto. * breakpoint.c (insert_breakpoints): Ditto. (watchpoint_check): Ditto. (bpstat_stop_status): Ditto. (do_enable_breakpoint): Ditto. * blockframe.c (flush_cached_frames): Ditto. (reinit_frame_cache): Ditto.
This commit is contained in:
@ -458,7 +458,7 @@ varobj_create (char *objname,
|
||||
{
|
||||
var->root->frame = FRAME_FP (fi);
|
||||
old_fi = selected_frame;
|
||||
select_frame (fi, -1);
|
||||
select_frame (fi);
|
||||
}
|
||||
|
||||
/* We definitively need to catch errors here.
|
||||
@ -485,7 +485,7 @@ varobj_create (char *objname,
|
||||
|
||||
/* Reset the selected frame */
|
||||
if (fi != NULL)
|
||||
select_frame (old_fi, -1);
|
||||
select_frame (old_fi);
|
||||
}
|
||||
|
||||
/* If the variable object name is null, that means this
|
||||
@ -983,7 +983,7 @@ varobj_update (struct varobj **varp, struct varobj ***changelist)
|
||||
}
|
||||
|
||||
/* Restore selected frame */
|
||||
select_frame (old_fi, -1);
|
||||
select_frame (old_fi);
|
||||
|
||||
if (type_changed)
|
||||
return -2;
|
||||
@ -1862,7 +1862,7 @@ c_value_of_root (struct varobj **var_handle)
|
||||
within_scope = fi != NULL;
|
||||
/* FIXME: select_frame could fail */
|
||||
if (within_scope)
|
||||
select_frame (fi, -1);
|
||||
select_frame (fi);
|
||||
}
|
||||
|
||||
if (within_scope)
|
||||
|
Reference in New Issue
Block a user