gdb/linux-nat: factor ptrace-detach code to new detach_one_pid function
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 1 Dec 2021 14:40:02 +0000 (09:40 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 9 Dec 2021 02:00:39 +0000 (21:00 -0500)
commit4a3ee32a402c865d2abec9bd6b708bc315a0fff8
tree1be2a8cdd12643d297c2c0bc5730f50da0caf7bd
parent7b961964f86618773218c067bfff066b2bff8328
gdb/linux-nat: factor ptrace-detach code to new detach_one_pid function

The following patch will add some code paths that need to ptrace-detach
a given PID.  Factor out the code that does this and put it in its own
function, so that it can be re-used.

Change-Id: Ie65ca0d89893b41aea0a23d9fc6ffbed042a9705
gdb/linux-nat.c