From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id C624B3858434; Fri, 29 Apr 2022 22:22:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C624B3858434 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] Delete some unnecessary wrapper functions X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 16922ea6adfe975e42aa2c6bf4a464069754496f X-Git-Newrev: 6689579725c370e4284f035ea283f2e459653738 Message-Id: <20220429222209.C624B3858434@sourceware.org> Date: Fri, 29 Apr 2022 22:22:09 +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:22:09 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6689579725c3= 70e4284f035ea283f2e459653738 commit 6689579725c370e4284f035ea283f2e459653738 Author: Tom Tromey Date: Thu Jan 13 18:43:33 2022 -0700 Delete some unnecessary wrapper functions =20 This patch deletes a few unnecessary wrapper functions from breakpoint.c. Diff: --- gdb/breakpoint.c | 68 ++++------------------------------------------------= ---- 1 file changed, 4 insertions(+), 64 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 4864bc79ee1..28c898e7c0c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -11817,36 +11817,6 @@ bkpt_print_recreate (struct breakpoint *tp, struct= ui_file *fp) print_recreate_thread (tp, fp); } =20 -static void -bkpt_create_sals_from_location (struct event_location *location, - struct linespec_result *canonical, - enum bptype type_wanted) -{ - create_sals_from_location_default (location, canonical, type_wanted); -} - -static void -bkpt_create_breakpoints_sal (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_default (gdbarch, canonical, - std::move (cond_string), - std::move (extra_string), - type_wanted, - disposition, thread, task, - ignore_count, ops, from_tty, - enabled, internal, flags); -} - static std::vector bkpt_decode_location (struct breakpoint *b, struct event_location *location, @@ -12129,36 +12099,6 @@ tracepoint_print_recreate (struct breakpoint *self= , struct ui_file *fp) gdb_printf (fp, " passcount %d\n", tp->pass_count); } =20 -static void -tracepoint_create_sals_from_location (struct event_location *location, - struct linespec_result *canonical, - enum bptype type_wanted) -{ - create_sals_from_location_default (location, canonical, type_wanted); -} - -static void -tracepoint_create_breakpoints_sal (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_default (gdbarch, canonical, - std::move (cond_string), - std::move (extra_string), - type_wanted, - disposition, thread, task, - ignore_count, ops, from_tty, - enabled, internal, flags); -} - static std::vector tracepoint_decode_location (struct breakpoint *b, struct event_location *location, @@ -14477,8 +14417,8 @@ initialize_breakpoint_ops (void) ops->insert_location =3D bkpt_insert_location; ops->remove_location =3D bkpt_remove_location; ops->breakpoint_hit =3D bkpt_breakpoint_hit; - ops->create_sals_from_location =3D bkpt_create_sals_from_location; - ops->create_breakpoints_sal =3D bkpt_create_breakpoints_sal; + ops->create_sals_from_location =3D create_sals_from_location_default; + ops->create_breakpoints_sal =3D create_breakpoints_sal_default; ops->decode_location =3D bkpt_decode_location; =20 /* The breakpoint_ops structure to be used in regular breakpoints. */ @@ -14560,8 +14500,8 @@ initialize_breakpoint_ops (void) ops->print_one_detail =3D tracepoint_print_one_detail; ops->print_mention =3D tracepoint_print_mention; ops->print_recreate =3D tracepoint_print_recreate; - ops->create_sals_from_location =3D tracepoint_create_sals_from_location; - ops->create_breakpoints_sal =3D tracepoint_create_breakpoints_sal; + ops->create_sals_from_location =3D create_sals_from_location_default; + ops->create_breakpoints_sal =3D create_breakpoints_sal_default; ops->decode_location =3D tracepoint_decode_location; =20 /* Probe tracepoints. */