This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: please ask a question abput breakpoint


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]