aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/linux-low.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-03-17 19:25:03 +0000
committerPedro Alves <pedro@palves.net>2023-11-13 14:16:10 +0000
commit4898949800206894305b954e10a9a8c36e2d08c7 (patch)
tree5ea17570309abd580410cb2df15ef326cea4773b /gdbserver/linux-low.h
parentd8d96409c83f84f5c15d2e846a7c0a59ceed187c (diff)
downloadgdb-4898949800206894305b954e10a9a8c36e2d08c7.zip
gdb-4898949800206894305b954e10a9a8c36e2d08c7.tar.gz
gdb-4898949800206894305b954e10a9a8c36e2d08c7.tar.bz2
Implement GDB_THREAD_OPTION_EXIT support for Linux GDBserver
This implements support for the new GDB_THREAD_OPTION_EXIT thread option for Linux GDBserver. Reviewed-By: Andrew Burgess <aburgess@redhat.com> Change-Id: I96b719fdf7fee94709e98bb3a90751d8134f3a38 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27338
Diffstat (limited to 'gdbserver/linux-low.h')
-rw-r--r--gdbserver/linux-low.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h
index b5ff939..3597e33 100644
--- a/gdbserver/linux-low.h
+++ b/gdbserver/linux-low.h
@@ -575,10 +575,11 @@ private: /* Back to private. */
exited. */
void check_zombie_leaders ();
- /* Convenience function that is called when the kernel reports an exit
- event. This decides whether to report the event to GDB as a
- process exit event, a thread exit event, or to suppress the
- event. */
+ /* Convenience function that is called when we're about to return an
+ event to the core. If the event is an exit or signalled event,
+ then this decides whether to report it as process-wide event, as
+ a thread exit event, or to suppress it. All other event kinds
+ are passed through unmodified. */
ptid_t filter_exit_event (lwp_info *event_child,
target_waitstatus *ourstatus);