This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
A question about gcc and threads under Linux 2.4
- From: "Nikita V. Youshchenko" <alexmm at gala dot net>
- To: gdb at sources dot redhat dot com
- Date: Tue, 18 Mar 2003 13:45:10 +0300
- Subject: A question about gcc and threads under Linux 2.4
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.