gdb: make set_raw_breakpoint static
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 7 Dec 2021 03:15:37 +0000 (22:15 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 7 Dec 2021 20:51:10 +0000 (15:51 -0500)
set_raw_breakpoint is only used in breakpoint.c, make it static.

Change-Id: I7fbeda067685309a30b88aceaf957eff7a28e310

gdb/breakpoint.c

index acf38818c3f8c7b2a0c14b5b63505c7f2cdb9673..877ca83984eba1f0b254d748bdc0385b2d1fe252 100644 (file)
@@ -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)