public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdb: remove type_wanted parameter from a few functions
Date: Mon, 2 May 2022 20:14:35 +0000 (GMT) [thread overview]
Message-ID: <20220502201435.1FD1C3858C74@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=03ada39ea590fec3bd722e9ea776049213da8b58
commit 03ada39ea590fec3bd722e9ea776049213da8b58
Author: Simon Marchi <simon.marchi@efficios.com>
Date: Mon May 2 16:08:19 2022 -0400
gdb: remove type_wanted parameter from a few functions
The type_wanted value, passed down to the create_sals_from_location
callback, is never used. Remove it.
Change-Id: Ic363ee13f6af593a3e875ff7fe46de130cdc190c
Diff:
---
gdb/breakpoint.c | 26 ++++++++++----------------
gdb/breakpoint.h | 3 +--
2 files changed, 11 insertions(+), 18 deletions(-)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 83f5e7588e0..7241b7b6985 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -91,8 +91,7 @@ static void breakpoint_re_set_default (struct breakpoint *);
static void
create_sals_from_location_default (struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted);
+ struct linespec_result *canonical);
static void create_breakpoints_sal (struct gdbarch *,
struct linespec_result *,
@@ -234,12 +233,10 @@ static int strace_marker_p (struct breakpoint *b);
static void bkpt_probe_create_sals_from_location
(struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted);
+ struct linespec_result *canonical);
static void tracepoint_probe_create_sals_from_location
(struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted);
+ struct linespec_result *canonical);
const struct breakpoint_ops base_breakpoint_ops =
{
@@ -8892,7 +8889,7 @@ create_breakpoint (struct gdbarch *gdbarch,
try
{
- ops->create_sals_from_location (location, &canonical, type_wanted);
+ ops->create_sals_from_location (location, &canonical);
}
catch (const gdb_exception_error &e)
{
@@ -11960,8 +11957,8 @@ longjmp_breakpoint::~longjmp_breakpoint ()
static void
bkpt_probe_create_sals_from_location (struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted)
+ struct linespec_result *canonical)
+
{
struct linespec_sals lsal;
@@ -12079,11 +12076,10 @@ tracepoint::decode_location (struct event_location *location,
static void
tracepoint_probe_create_sals_from_location
(struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted)
+ struct linespec_result *canonical)
{
/* We use the same method for breakpoint on probes. */
- bkpt_probe_create_sals_from_location (location, canonical, type_wanted);
+ bkpt_probe_create_sals_from_location (location, canonical);
}
void
@@ -12150,8 +12146,7 @@ dprintf_breakpoint::after_condition_true (struct bpstat *bs)
static void
strace_marker_create_sals_from_location (struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted)
+ struct linespec_result *canonical)
{
struct linespec_sals lsal;
const char *arg_start, *arg;
@@ -12894,8 +12889,7 @@ breakpoint_re_set_default (struct breakpoint *b)
static void
create_sals_from_location_default (struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted)
+ struct linespec_result *canonical)
{
parse_breakpoint_sals (location, canonical);
}
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 94ae70698a4..1322bc1b9b9 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -568,8 +568,7 @@ struct breakpoint_ops
This function is called inside `create_breakpoint'. */
void (*create_sals_from_location) (struct event_location *location,
- struct linespec_result *canonical,
- enum bptype type_wanted);
+ struct linespec_result *canonical);
/* This method will be responsible for creating a breakpoint given its SALs.
Usually, it just calls `create_breakpoints_sal' (for ordinary
reply other threads:[~2022-05-02 20:14 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=20220502201435.1FD1C3858C74@sourceware.org \
--to=simark@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: link
Be 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).