mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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.
This commit is contained in:
@@ -35,10 +35,11 @@
|
|||||||
/* An instance of this type is used to represent a syscall
|
/* An instance of this type is used to represent a syscall
|
||||||
catchpoint. */
|
catchpoint. */
|
||||||
|
|
||||||
struct syscall_catchpoint : public breakpoint
|
struct syscall_catchpoint : public catchpoint
|
||||||
{
|
{
|
||||||
syscall_catchpoint (struct gdbarch *gdbarch, std::vector<int> &&calls)
|
syscall_catchpoint (struct gdbarch *gdbarch, bool tempflag,
|
||||||
: breakpoint (gdbarch, bp_catchpoint),
|
std::vector<int> &&calls)
|
||||||
|
: catchpoint (gdbarch, tempflag, nullptr),
|
||||||
syscalls_to_be_caught (std::move (calls))
|
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 ();
|
struct gdbarch *gdbarch = get_current_arch ();
|
||||||
|
|
||||||
std::unique_ptr<syscall_catchpoint> c
|
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);
|
install_breakpoint (0, std::move (c), 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user