This is the mail archive of the gdb@sources.redhat.com 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]

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.


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