aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-11-04 15:12:55 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-11-07 13:44:52 -0500
commit412cf590e52d7078cac4059a49fd1617a1523855 (patch)
tree79a6c2f52d18f554a32c7f3fb8139a8dc7e78cc4
parent4faede6126762a9704da4c79093cca15c15efafa (diff)
downloadgdb-412cf590e52d7078cac4059a49fd1617a1523855.zip
gdb-412cf590e52d7078cac4059a49fd1617a1523855.tar.gz
gdb-412cf590e52d7078cac4059a49fd1617a1523855.tar.bz2
gdb: make lookup_selected_frame static
Change-Id: Ide2749a34333110c7f0112b25852c78cace0d2b4
-rw-r--r--gdb/frame.c8
-rw-r--r--gdb/frame.h7
2 files changed, 6 insertions, 9 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;
diff --git a/gdb/frame.h b/gdb/frame.h
index f61ea63..0a142ad 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -264,13 +264,6 @@ extern void save_selected_frame (frame_id *frame_id, int *frame_level)
extern void restore_selected_frame (frame_id frame_id, int frame_level)
noexcept;
-/* Lookup the frame_info object for the selected frame FRAME_ID /
- FRAME_LEVEL and cache the result.
-
- If FRAME_LEVEL > 0 and the originally selected frame isn't found,
- warn and select the innermost (current) frame. */
-extern void lookup_selected_frame (frame_id frame_id, int frame_level);
-
/* Given a FRAME, return the next (more inner, younger) or previous
(more outer, older) frame. */
extern frame_info_ptr get_prev_frame (frame_info_ptr);