This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/173: "set scheduler-locking on" does not work on Linux
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/173: "set scheduler-locking on" does not work on Linux
- From: randy at vcsy dot com
- Date: 10 Jul 2001 19:30:13 -0000
- Reply-To: randy at vcsy dot com
>Number: 173
>Category: gdb
>Synopsis: "set scheduler-locking on" does not work on Linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 10 12:38:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: randy@vcsy.com
>Release: GDB 5.0
>Organization:
>Environment:
Linux Kernel 2.2.14-5.0
>Description:
I have been trying to debug a Java/JNI (jdk1_2_2-L-src-linux-09_Mar) application the is running multiple threads. At a certain point in the process, I need to stop the other threads from interfering. I set scheduler-locking on but I still hit breakpoints in the other threads. I am sending a command file that I am using in my testing. I hope I have given enough info here. If more is needed, just send email and I will try to get it for you.
It seems that set scheduler-locking on does not work at all. Is it supposed to? I need thread debug support in a big way. If gdb does not do this, any suggestions for another tool would be appreciated.
Thanks
>How-To-Repeat:
Just try it.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: unknown; name="err4_setup_gdb"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="err4_setup_gdb"
c2V0IGxpc3RzaXplIDQ1CnNldCB2ZXJib3NlIG9uCmhhbmRsZSBTSUdVU1IyIHBhc3Mgbm9zdG9w
IG5vcHJpbnQKaGFuZGxlIFNJR1NZUyBwYXNzIG5vc3RvcCBub3ByaW50CmhhbmRsZSBTSUdUVE9V
IHBhc3Mgbm9zdG9wIG5vcHJpbnQKc2V0IGFyZ3MgLWNwICRDTEFTU1BBVEg6LiBNTEUKYnJlYWsg
SW5pdGlhbGl6ZUpWTQpjb21tYW5kcwpzaWxlbnQKZW5kCnJ1bgpicmVhayBqYXZhaS5jOj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