aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-load.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-05-01 11:20:34 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:35 -0600
commit73063f5180a07b9c8042887cd4cada0b89388556 (patch)
treeaace65fbb3dc1d24861a00395416aadd32efa884 /gdb/break-catch-load.c
parent3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 (diff)
downloadbinutils-73063f5180a07b9c8042887cd4cada0b89388556.zip
binutils-73063f5180a07b9c8042887cd4cada0b89388556.tar.gz
binutils-73063f5180a07b9c8042887cd4cada0b89388556.tar.bz2
Remove init_raw_breakpoint_without_location
This removes init_raw_breakpoint_without_location, replacing it with a constructor on 'breakpoint' itself. The subclasses and callers are all updated.
Diffstat (limited to 'gdb/break-catch-load.c')
-rw-r--r--gdb/break-catch-load.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c
index 3e3bed2..8579f4e 100644
--- a/gdb/break-catch-load.c
+++ b/gdb/break-catch-load.c
@@ -35,8 +35,9 @@
struct solib_catchpoint : public breakpoint
{
- solib_catchpoint (bool is_load_, const char *arg)
- : is_load (is_load_),
+ solib_catchpoint (struct gdbarch *gdbarch, bool is_load_, const char *arg)
+ : breakpoint (gdbarch, bp_catchpoint),
+ is_load (is_load_),
regex (arg == nullptr ? nullptr : make_unique_xstrdup (arg)),
compiled (arg == nullptr
? nullptr
@@ -228,7 +229,8 @@ add_solib_catchpoint (const char *arg, bool is_load, bool is_temp, bool enabled)
if (*arg == '\0')
arg = nullptr;
- std::unique_ptr<solib_catchpoint> c (new solib_catchpoint (is_load, arg));
+ std::unique_ptr<solib_catchpoint> c (new solib_catchpoint (gdbarch,
+ is_load, arg));
init_catchpoint (c.get (), gdbarch, is_temp, NULL);