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] Remove breakpoint_ops from init_ada_exception_breakpoint
Date: Fri, 29 Apr 2022 22:24:16 +0000 (GMT)	[thread overview]
Message-ID: <20220429222416.8ED613857404@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a48ddc0d6ab6ce60ecc7d20d704d3891b383dbf6

commit a48ddc0d6ab6ce60ecc7d20d704d3891b383dbf6
Author: Tom Tromey <tom@tromey.com>
Date:   Sun Jan 16 19:03:46 2022 -0700

    Remove breakpoint_ops from init_ada_exception_breakpoint
    
    init_ada_exception_breakpoint is only ever passed a single
    breakpoint_ops structure, so remove the parameter.

Diff:
---
 gdb/ada-lang.c   | 1 -
 gdb/breakpoint.c | 4 ++--
 gdb/breakpoint.h | 1 -
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 1ef955d142b..f1af28a696a 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -12761,7 +12761,6 @@ create_ada_exception_catchpoint (struct gdbarch *gdbarch,
 
   std::unique_ptr<ada_catchpoint> c (new ada_catchpoint (ex_kind));
   init_ada_exception_breakpoint (c.get (), gdbarch, sal, addr_string.c_str (),
-				 &vtable_breakpoint_ops,
 				 tempflag, disabled, from_tty);
   c->excep_string = excep_string;
   create_excep_cond_exprs (c.get (), ex_kind);
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ecea7024624..b29b021662d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -10631,7 +10631,6 @@ init_ada_exception_breakpoint (struct breakpoint *b,
 			       struct gdbarch *gdbarch,
 			       struct symtab_and_line sal,
 			       const char *addr_string,
-			       const struct breakpoint_ops *ops,
 			       int tempflag,
 			       int enabled,
 			       int from_tty)
@@ -10654,7 +10653,8 @@ init_ada_exception_breakpoint (struct breakpoint *b,
 	 enough for now, though.  */
     }
 
-  init_raw_breakpoint (b, gdbarch, sal, bp_catchpoint, ops);
+  init_raw_breakpoint (b, gdbarch, sal, bp_catchpoint,
+		       &vtable_breakpoint_ops);
 
   b->enable_state = enabled ? bp_enabled : bp_disabled;
   b->disposition = tempflag ? disp_del : disp_donttouch;
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 4e52656dc7c..10e7410220d 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1518,7 +1518,6 @@ extern void
 				 struct gdbarch *gdbarch,
 				 struct symtab_and_line sal,
 				 const char *addr_string,
-				 const struct breakpoint_ops *ops,
 				 int tempflag,
 				 int enabled,
 				 int from_tty);


                 reply	other threads:[~2022-04-29 22:24 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=20220429222416.8ED613857404@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: 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).