mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
gdb: add invalidate_selected_frame function
Instead of using `select_frame (nullptr)` to invalidate the selected frame, introduce a function to do that. There is no change in behavior, but it makes the intent a bit clearer. It also allows adding an assert in select_frame that fi is not nullptr, so it avoids passing nullptr by mistake. Change-Id: I61643f46bc8eca428334513ebdaadab63997bdd0 Reviewed-By: Bruno Larsen <blarsen@redhat.com>
This commit is contained in:
committed by
Simon Marchi
parent
b5e7cd5cd3
commit
1de4b51563
@@ -239,8 +239,7 @@ extern void reinit_frame_cache (void);
|
||||
and then return that thread's previously selected frame. */
|
||||
extern frame_info_ptr get_selected_frame (const char *message = nullptr);
|
||||
|
||||
/* Select a specific frame. NULL implies re-select the inner most
|
||||
frame. */
|
||||
/* Select a specific frame. */
|
||||
extern void select_frame (frame_info_ptr);
|
||||
|
||||
/* Save the frame ID and frame level of the selected frame in FRAME_ID
|
||||
|
||||
Reference in New Issue
Block a user