public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* A question about gcc and threads under Linux 2.4
@ 2003-03-18 10:46 Nikita V. Youshchenko
  2003-03-18 16:58 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Nikita V. Youshchenko @ 2003-03-18 10:46 UTC (permalink / raw)
  To: gdb

Hello.

When debugging threaded programs with gdb, unexpected thread switches often 
happen. E.g. if another gdb step-by-step executes one thread, and another 
thread executes a system call, ofted gdb switches to than thread.

Gdb documentation says that on some targets gdb supports "set 
scheduler-locking" command that can help to avoid this behaviuor. But 
seems that this is not supported under Linux.

Is there any method to make debugging threads smarter under Linux? E.g. a 
kernel patch, another threading library, some patch to gdb, etc? If there 
are none, could someone assist me it implementing one?

Thank you for your help.
Please CC: me, I am not on the list.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-21 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-18 10:46 A question about gcc and threads under Linux 2.4 Nikita V. Youshchenko
2003-03-18 16:58 ` Daniel Jacobowitz
2003-03-21 18:16   ` Re[2]: " Nikita V . Youshchenko

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).