diff options
Diffstat (limited to 'gdb/inf-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index ebcc409..ea1fe45 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -48,6 +48,9 @@ gdb_ptrace (PTRACE_TYPE_ARG1 request, ptid_t ptid, PTRACE_TYPE_ARG3 addr, #endif } +/* The event pipe registered as a waitable file in the event loop. */ +event_pipe inf_ptrace_target::m_event_pipe; + inf_ptrace_target::~inf_ptrace_target () {} @@ -527,3 +530,15 @@ inf_ptrace_target::pid_to_str (ptid_t ptid) { return normal_pid_to_str (ptid); } + +/* Implement the "close" target method. */ + +void +inf_ptrace_target::close () +{ + /* Unregister from the event loop. */ + if (is_async_p ()) + async (0); + + inf_child_target::close (); +} |