diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
commit | b146ba14d7019e046f5691ffbffa1d852b798c72 (patch) | |
tree | 864815823848712c9bd97a6503e5f34772e6b446 /gdb/fbsd-nat.h | |
parent | e05523bd2411bac0277da73556f4d01f6c7448aa (diff) | |
download | gdb-b146ba14d7019e046f5691ffbffa1d852b798c72.zip gdb-b146ba14d7019e046f5691ffbffa1d852b798c72.tar.gz gdb-b146ba14d7019e046f5691ffbffa1d852b798c72.tar.bz2 |
inf-ptrace: Add an event_pipe to be used for async mode in subclasses.
Subclasses of inf_ptrace_target have to opt-in to using the event_pipe
by implementing the can_async_p and async methods. For subclasses
which do this, inf_ptrace_target provides is_async_p, async_wait_fd
and closes the pipe in the close target method.
inf_ptrace_target also provides wrapper routines around the event pipe
(async_file_open, async_file_close, async_file_flush, and
async_file_mark) for use in target methods such as async.
inf_ptrace_target also exports a static async_file_mark_if_open
function which can be used in SIGCHLD signal handlers.
Diffstat (limited to 'gdb/fbsd-nat.h')
-rw-r--r-- | gdb/fbsd-nat.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/fbsd-nat.h b/gdb/fbsd-nat.h index 0acfef2..2d9c6e1 100644 --- a/gdb/fbsd-nat.h +++ b/gdb/fbsd-nat.h @@ -67,13 +67,9 @@ public: void update_thread_list () override; bool can_async_p () override; - bool is_async_p () override; - int async_wait_fd () override; void async (int) override; - void close () override; - thread_control_capabilities get_thread_control_capabilities () override { return tc_schedlock; } |