diff options
author | Tom Tromey <tom@tromey.com> | 2022-05-07 10:07:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-05-07 10:07:36 -0600 |
commit | c5eab52dbae5806ffa8567afc73aab7f3a93f4a6 (patch) | |
tree | ea517aadba0febd472dcb1ae1ecb41ca6a78d4dd /gdb | |
parent | 8f3babfaf8ea582bed93fd6abcde7bfc96d3a8dd (diff) | |
download | gdb-c5eab52dbae5806ffa8567afc73aab7f3a93f4a6.zip gdb-c5eab52dbae5806ffa8567afc73aab7f3a93f4a6.tar.gz gdb-c5eab52dbae5806ffa8567afc73aab7f3a93f4a6.tar.bz2 |
Fix "catch syscall"
Simon pointed out that some recent patches of mine broke "catch
syscall". Apparently I forgot to finish the conversion of this code
when removing init_catchpoint. This patch completes the conversion
and fixes the bug.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/break-catch-syscall.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c index d79ced4..af55ecb 100644 --- a/gdb/break-catch-syscall.c +++ b/gdb/break-catch-syscall.c @@ -35,10 +35,11 @@ /* An instance of this type is used to represent a syscall catchpoint. */ -struct syscall_catchpoint : public breakpoint +struct syscall_catchpoint : public catchpoint { - syscall_catchpoint (struct gdbarch *gdbarch, std::vector<int> &&calls) - : breakpoint (gdbarch, bp_catchpoint), + syscall_catchpoint (struct gdbarch *gdbarch, bool tempflag, + std::vector<int> &&calls) + : catchpoint (gdbarch, tempflag, nullptr), syscalls_to_be_caught (std::move (calls)) { } @@ -354,7 +355,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 (gdbarch, std::move (filter))); + (new syscall_catchpoint (gdbarch, tempflag, std::move (filter))); install_breakpoint (0, std::move (c), 1); } |