public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Delete some unnecessary wrapper functions Date: Fri, 29 Apr 2022 22:22:09 +0000 (GMT) [thread overview] Message-ID: <20220429222209.C624B3858434@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6689579725c370e4284f035ea283f2e459653738 commit 6689579725c370e4284f035ea283f2e459653738 Author: Tom Tromey <tom@tromey.com> Date: Thu Jan 13 18:43:33 2022 -0700 Delete some unnecessary wrapper functions 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); } -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<char> cond_string, - gdb::unique_xmalloc_ptr<char> 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<symtab_and_line> 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); } -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<char> cond_string, - gdb::unique_xmalloc_ptr<char> 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<symtab_and_line> tracepoint_decode_location (struct breakpoint *b, struct event_location *location, @@ -14477,8 +14417,8 @@ initialize_breakpoint_ops (void) ops->insert_location = bkpt_insert_location; ops->remove_location = bkpt_remove_location; ops->breakpoint_hit = bkpt_breakpoint_hit; - ops->create_sals_from_location = bkpt_create_sals_from_location; - ops->create_breakpoints_sal = bkpt_create_breakpoints_sal; + ops->create_sals_from_location = create_sals_from_location_default; + ops->create_breakpoints_sal = create_breakpoints_sal_default; ops->decode_location = bkpt_decode_location; /* The breakpoint_ops structure to be used in regular breakpoints. */ @@ -14560,8 +14500,8 @@ initialize_breakpoint_ops (void) ops->print_one_detail = tracepoint_print_one_detail; ops->print_mention = tracepoint_print_mention; ops->print_recreate = tracepoint_print_recreate; - ops->create_sals_from_location = tracepoint_create_sals_from_location; - ops->create_breakpoints_sal = tracepoint_create_breakpoints_sal; + ops->create_sals_from_location = create_sals_from_location_default; + ops->create_breakpoints_sal = create_breakpoints_sal_default; ops->decode_location = tracepoint_decode_location; /* Probe tracepoints. */
reply other threads:[~2022-04-29 22:22 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=20220429222209.C624B3858434@sourceware.org \ --to=tromey@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: linkBe 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).