diff options
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 5cf9186..14f9668 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1707,9 +1707,13 @@ restore_selected_frame (frame_id frame_id, int frame_level) selected_frame = nullptr; } -/* See frame.h. */ +/* Lookup the frame_info object for the selected frame FRAME_ID / + FRAME_LEVEL and cache the result. -void + If FRAME_LEVEL > 0 and the originally selected frame isn't found, + warn and select the innermost (current) frame. */ + +static void lookup_selected_frame (struct frame_id a_frame_id, int frame_level) { frame_info_ptr frame = NULL; |