This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 09/12] Make reinsert_breakpoint thread specific
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 Jun 2016 13:56:56 +0100
- Subject: Re: [PATCH 09/12] Make reinsert_breakpoint thread specific
- Authentication-results: sourceware.org; auth=none
- References: <1464859846-15619-1-git-send-email-yao dot qi at linaro dot org> <1464859846-15619-10-git-send-email-yao dot qi at linaro dot org> <71a5322e-41e3-9e23-df73-e14b14c1d656 at redhat dot com> <86lh28szji dot fsf at gmail dot com>
On 06/14/2016 01:52 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
>
>>> - uninsert_reinsert_breakpoints ();
>>> + uninsert_reinsert_breakpoints (ptid_of_lwp (event_lwp));
>>> current_thread = saved_thread;
>>
>> Would it work to pass down the thread pointer directly?
>>
>> That would then allow pushing down the save current thread / restore
>> current thread juggling to uninsert_reinsert_breakpoints too.
>
> Yes, see the patch below,
>
LGTM.
Thanks,
Pedro Alves