public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdb: make lookup_selected_frame static
Date: Mon,  7 Nov 2022 18:45:16 +0000 (GMT)	[thread overview]
Message-ID: <20221107184516.BC96A3858D3C@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=412cf590e52d7078cac4059a49fd1617a1523855

commit 412cf590e52d7078cac4059a49fd1617a1523855
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Fri Nov 4 15:12:55 2022 -0400

    gdb: make lookup_selected_frame static
    
    Change-Id: Ide2749a34333110c7f0112b25852c78cace0d2b4

Diff:
---
 gdb/frame.c | 8 ++++++--
 gdb/frame.h | 7 -------
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/gdb/frame.c b/gdb/frame.c
index 5cf9186e43d..14f9668ce00 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 f61ea63c290..0a142ad2fc4 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);

                 reply	other threads:[~2022-11-07 18:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221107184516.BC96A3858D3C@sourceware.org \
    --to=simark@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).