public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb: make set_raw_breakpoint static
@ 2021-12-07 20:52 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2021-12-07 20:52 UTC (permalink / raw)
  To: gdb-patches

set_raw_breakpoint is only used in breakpoint.c, make it static.

Change-Id: I7fbeda067685309a30b88aceaf957eff7a28e310
---
 gdb/breakpoint.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index acf38818c3f8..877ca83984eb 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -121,10 +121,10 @@ static struct bp_location *add_location_to_breakpoint (struct breakpoint *,
 
 /* This function is used in gdbtk sources and thus can not be made
    static.  */
-struct breakpoint *set_raw_breakpoint (struct gdbarch *gdbarch,
-				       struct symtab_and_line,
-				       enum bptype,
-				       const struct breakpoint_ops *);
+static struct breakpoint *set_raw_breakpoint (struct gdbarch *gdbarch,
+					      struct symtab_and_line,
+					      enum bptype,
+					      const struct breakpoint_ops *);
 
 static struct breakpoint *
   momentary_breakpoint_from_master (struct breakpoint *orig,
@@ -7248,7 +7248,7 @@ init_raw_breakpoint (struct breakpoint *b, struct gdbarch *gdbarch,
    prior to completing the initialization of the breakpoint.  If this
    should happen, a bogus breakpoint will be left on the chain.  */
 
-struct breakpoint *
+static struct breakpoint *
 set_raw_breakpoint (struct gdbarch *gdbarch,
 		    struct symtab_and_line sal, enum bptype bptype,
 		    const struct breakpoint_ops *ops)
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-07 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 20:52 [pushed] gdb: make set_raw_breakpoint static Simon Marchi

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).