This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: please ask a question abput breakpoint
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: orglinux at sina dot com
- Cc: gdb <gdb at sourceware dot org>
- Date: Fri, 6 Jul 2012 08:30:51 +0200
- Subject: Re: please ask a question abput breakpoint
- References: <20120706032345.CD1DB978618@webmail.sinamail.sina.com.cn>
On Fri, 06 Jul 2012 05:23:45 +0200, orglinux@sina.com wrote:
> Hi, GDB developpers: In mulit-threading ,when a thread encounter
> a breadpoint, how does the gdbserver find out the thread encounting the
> breakpoint? Because many threads may encounter the same breakpoint.
In the case of Linux kernel it reports SIGTRAP for the specific task
(=thread). waitpid returns PID (TID) of that thread.
Regards,
Jan