Browse Source
This commit extends the logic added by these two commits from a while ago: #1binutils-2_42-branch7b961964f8(gdbserver: hide fork child threads from GDB), #2df5ad10200(gdb, gdbserver: detach fork child when detaching from fork parent) ... to handle thread clone events, which are very similar to (v)fork events. For #1, we want to hide clone children as well, so just update the comments. For #2, unlike (v)fork children, pending clone children aren't full processes, they're just threads, so don't detach them in handle_detach. linux-low.cc will take care of detaching them along with all other threads of the process, there's nothing special that needs to be done. Reviewed-By: Andrew Burgess <aburgess@redhat.com> Change-Id: I7f5901d07efda576a2522d03e183994e071b8ffc
5 changed files with 31 additions and 20 deletions
Loading…
Reference in new issue