mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* infrun.c (struct inferior_status): Replace fields
selected_frame_address and selected_level with field selected_frame_id. (save_inferior_status): Update. Use get_frame_id. (struct restore_selected_frame_args): Delete. (restore_selected_frame): Update. Use frame_find_by_id. (restore_inferior_status): Update. * breakpoint.h (struct breakpoint): Change type of watchpoint_frame to frame_id. * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove call to get_current_frame. (do_enable_breakpoint): Use frame_find_by_id. Remove call to get_current_frame. (watchpoint_check): Use frame_find_by_id. * frame.h (record_selected_frame): Delete declaration. * stack.c (record_selected_frame): Delete function. * frame.h (struct frame_id): Define. (get_frame_id): Declare. (frame_find_by_id): Declare. * frame.c (frame_find_by_id): New function. (get_frame_id): New function.
This commit is contained in:
11
gdb/stack.c
11
gdb/stack.c
@ -1545,17 +1545,6 @@ select_and_print_frame (struct frame_info *fi)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Store the selected frame and its level into *FRAMEP and *LEVELP.
|
||||
If there is no selected frame, *FRAMEP is set to NULL. */
|
||||
|
||||
void
|
||||
record_selected_frame (CORE_ADDR *frameaddrp, int *levelp)
|
||||
{
|
||||
*frameaddrp = selected_frame ? selected_frame->frame : 0;
|
||||
*levelp = frame_relative_level (selected_frame);
|
||||
}
|
||||
|
||||
/* Return the symbol-block in which the selected frame is executing.
|
||||
Can return zero under various legitimate circumstances.
|
||||
|
||||
|
Reference in New Issue
Block a user