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 | e05523bd2411bac0277da73556f4d01f6c7448aa (patch) | |
tree | 6bb11c7419e5c176e0ceec0c246ee850f6365cfc /gdb/fbsd-nat.c | |
parent | d0bbe64c5a3f9608ae5987f1267de7a734ee8151 (diff) | |
download | gdb-e05523bd2411bac0277da73556f4d01f6c7448aa.zip gdb-e05523bd2411bac0277da73556f4d01f6c7448aa.tar.gz gdb-e05523bd2411bac0277da73556f4d01f6c7448aa.tar.bz2 |
Enable async mode in the target in attach_cmd.
If the attach target supports async mode, enable it after the
attach target's ::attach method returns.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index cea3ce7..6f1f208 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1025,19 +1025,6 @@ fbsd_nat_target::close () inf_ptrace_target::close (); } -/* Implement the "attach" target method. */ - -void -fbsd_nat_target::attach (const char *args, int from_tty) -{ - inf_ptrace_target::attach (args, from_tty); - - /* Curiously, the core does not do this automatically. */ - if (target_can_async_p ()) - target_async (1); -} - - #ifdef TDP_RFPPWAIT /* To catch fork events, PT_FOLLOW_FORK is set on every traced process |