* please ask a question abput breakpoint
@ 2012-07-06 3:25 orglinux
2012-07-06 6:31 ` Jan Kratochvil
0 siblings, 1 reply; 2+ messages in thread
From: orglinux @ 2012-07-06 3:25 UTC (permalink / raw)
To: gdb
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: please ask a question abput breakpoint
2012-07-06 3:25 please ask a question abput breakpoint orglinux
@ 2012-07-06 6:31 ` Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2012-07-06 6:31 UTC (permalink / raw)
To: orglinux; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-06 6:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06 3:25 please ask a question abput breakpoint orglinux
2012-07-06 6:31 ` Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).