diff options
author | Tom Tromey <tom@tromey.com> | 2022-05-01 11:20:34 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-05-06 12:03:35 -0600 |
commit | 73063f5180a07b9c8042887cd4cada0b89388556 (patch) | |
tree | aace65fbb3dc1d24861a00395416aadd32efa884 /gdb/break-catch-fork.c | |
parent | 3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 (diff) | |
download | binutils-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-fork.c')
-rw-r--r-- | gdb/break-catch-fork.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/break-catch-fork.c b/gdb/break-catch-fork.c index 3ad4baf..913ccec 100644 --- a/gdb/break-catch-fork.c +++ b/gdb/break-catch-fork.c @@ -34,8 +34,9 @@ struct fork_catchpoint : public breakpoint { - explicit fork_catchpoint (bool is_vfork_) - : is_vfork (is_vfork_) + fork_catchpoint (struct gdbarch *gdbarch, bool is_vfork_) + : breakpoint (gdbarch, bp_catchpoint), + is_vfork (is_vfork_) { } @@ -185,7 +186,8 @@ create_fork_vfork_event_catchpoint (struct gdbarch *gdbarch, bool temp, const char *cond_string, bool is_vfork) { - std::unique_ptr<fork_catchpoint> c (new fork_catchpoint (is_vfork)); + std::unique_ptr<fork_catchpoint> c (new fork_catchpoint (gdbarch, + is_vfork)); init_catchpoint (c.get (), gdbarch, temp, cond_string); |