]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Thread options & clone events (Linux GDBserver)
authorPedro Alves <pedro@palves.net>
Tue, 23 Nov 2021 20:35:12 +0000 (20:35 +0000)
committerPedro Alves <pedro@palves.net>
Fri, 10 Mar 2023 19:14:18 +0000 (19:14 +0000)
commit6cff34433ec67eeb194fea99ad57ca0c10d62cec
tree66ab4ae88582d6bb307c59c8665141c94f8f7314
parenta52b672f9053a194311a4c4b528c8e9b694d7330
Thread options & clone events (Linux GDBserver)

This patch teaches the Linux GDBserver backend to report clone events
to GDB, when GDB has requested them with the GDB_THREAD_OPTION_CLONE
thread option, via the new QThreadOptions packet.

This shuffles code in linux_process_target::handle_extended_wait
around to a more logical order when we now have to handle and
potentially report all of fork/vfork/clone.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19675
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27830
Change-Id: I3a19bc98801ec31e5c6fdbe1ebe17df855142bb2
gdbserver/linux-low.cc
gdbserver/linux-low.h