From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 12CFE3857404; Fri, 29 Apr 2022 22:24:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12CFE3857404 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove create_breakpoints_sal_default X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: ee89d0a4e82399e6e857a67e8bef81bfbe6e7df4 X-Git-Newrev: eee031e253a970565f5181c2b41f8c8e70d0e10e Message-Id: <20220429222452.12CFE3857404@sourceware.org> Date: Fri, 29 Apr 2022 22:24:52 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2022 22:24:52 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Deee031e253a9= 70565f5181c2b41f8c8e70d0e10e commit eee031e253a970565f5181c2b41f8c8e70d0e10e Author: Tom Tromey Date: Sun Jan 16 19:29:40 2022 -0700 Remove create_breakpoints_sal_default =20 create_breakpoints_sal_default is just a simple wrapper, so remove it. Diff: --- gdb/breakpoint.c | 49 ++++++++++++------------------------------------- 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 17ab0f030cd..83f5e7588e0 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -94,15 +94,15 @@ static void struct linespec_result *canonical, enum bptype type_wanted); =20 -static void create_breakpoints_sal_default (struct gdbarch *, - struct linespec_result *, - gdb::unique_xmalloc_ptr, - gdb::unique_xmalloc_ptr, - enum bptype, - enum bpdisp, int, int, - int, - const struct breakpoint_ops *, - int, int, int, unsigned); +static void create_breakpoints_sal (struct gdbarch *, + struct linespec_result *, + gdb::unique_xmalloc_ptr, + gdb::unique_xmalloc_ptr, + enum bptype, + enum bpdisp, int, int, + int, + const struct breakpoint_ops *, + int, int, int, unsigned); =20 static std::vector decode_location_default (struct breakpoint *b, struct event_location *location, @@ -244,21 +244,21 @@ static void tracepoint_probe_create_sals_from_location const struct breakpoint_ops base_breakpoint_ops =3D { create_sals_from_location_default, - create_breakpoints_sal_default, + create_breakpoints_sal, }; =20 /* Breakpoints set on probes. */ static const struct breakpoint_ops bkpt_probe_breakpoint_ops =3D { bkpt_probe_create_sals_from_location, - create_breakpoints_sal_default, + create_breakpoints_sal, }; =20 /* Tracepoints set on probes. */ static const struct breakpoint_ops tracepoint_probe_breakpoint_ops =3D { tracepoint_probe_create_sals_from_location, - create_breakpoints_sal_default, + create_breakpoints_sal, }; =20 /* The structure to be used in regular breakpoints. */ @@ -12900,31 +12900,6 @@ create_sals_from_location_default (struct event_lo= cation *location, parse_breakpoint_sals (location, canonical); } =20 -/* Call create_breakpoints_sal for the given arguments. This is the defau= lt - function for the `create_breakpoints_sal' method of - breakpoint_ops. */ - -static void -create_breakpoints_sal_default (struct gdbarch *gdbarch, - struct linespec_result *canonical, - gdb::unique_xmalloc_ptr cond_string, - gdb::unique_xmalloc_ptr extra_string, - enum bptype type_wanted, - enum bpdisp disposition, - int thread, - int task, int ignore_count, - const struct breakpoint_ops *ops, - int from_tty, int enabled, - int internal, unsigned flags) -{ - create_breakpoints_sal (gdbarch, canonical, - std::move (cond_string), - std::move (extra_string), - type_wanted, disposition, - thread, task, ignore_count, ops, from_tty, - enabled, internal, flags); -} - /* Decode the line represented by S by calling decode_line_full. This is = the default function for the `decode_location' method of breakpoint_ops. */