aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-syscall.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-syscall.c
parent3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 (diff)
downloadgdb-73063f5180a07b9c8042887cd4cada0b89388556.zip
gdb-73063f5180a07b9c8042887cd4cada0b89388556.tar.gz
gdb-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-syscall.c')
-rw-r--r--gdb/break-catch-syscall.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c
index d25d7ba..5ed15ac 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -37,8 +37,9 @@
struct syscall_catchpoint : public breakpoint
{
- explicit syscall_catchpoint (std::vector<int> &&calls)
- : syscalls_to_be_caught (std::move (calls))
+ syscall_catchpoint (struct gdbarch *gdbarch, std::vector<int> &&calls)
+ : breakpoint (gdbarch, bp_catchpoint),
+ syscalls_to_be_caught (std::move (calls))
{
}
@@ -353,7 +354,7 @@ create_syscall_event_catchpoint (int tempflag, std::vector<int> &&filter)
struct gdbarch *gdbarch = get_current_arch ();
std::unique_ptr<syscall_catchpoint> c
- (new syscall_catchpoint (std::move (filter)));
+ (new syscall_catchpoint (gdbarch, std::move (filter)));
init_catchpoint (c.get (), gdbarch, tempflag, nullptr);
install_breakpoint (0, std::move (c), 1);