This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Unset attach_flag when running a new process
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gdb-patches at sourceware dot org
- Date: Thu, 30 Jul 2015 17:24:20 +0100
- Subject: Re: [PATCH] Unset attach_flag when running a new process
- Authentication-results: sourceware.org; auth=none
- References: <1438219483-13498-1-git-send-email-patrick at parcs dot ath dot cx> <1438270110-23564-1-git-send-email-patrick at parcs dot ath dot cx>
On 30/07/15 16:28, Patrick Palka wrote:
+ /* Unset attach_flag, it may be set if the previous process associated with
+ the inferior was attached to. */
+ current_inferior ()->attach_flag = 0;
It is better to do such reset in target.c:target_pre_inferior, which
is created for such purpose, as far as I know.
I don't read the test part of this patch.
--
Yao (éå)