This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 04/13] Get pid rather than lwpid
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Tue, 25 Aug 2015 11:47:34 +0100
- Subject: Re: [PATCH 04/13] Get pid rather than lwpid
- Authentication-results: sourceware.org; auth=none
- References: <1439913199-22882-1-git-send-email-yao dot qi at linaro dot org> <1439913199-22882-5-git-send-email-yao dot qi at linaro dot org>
On 08/18/2015 04:53 PM, Yao Qi wrote:
> We print PID rather than LWPID in the debug output, so we need call
> ptid_get_pid in debug_reg_change_callback.
This doesn't really make sense to me. We're changing debug registers
of an LWP, so we should print the LWP's pid, not the thread group
leader's pid.
Thanks,
Pedro Alves