This is the mail archive of the gdb-prs@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]

Re: threads/1371: The scheduler-locking do not work in RedHat 8.0


The following reply was made to PR threads/1371; it has been noted by GNATS.

From: Michael Elizabeth Chastain <mec@shout.net>
To: drow@mvista.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: threads/1371: The scheduler-locking do not work in RedHat 8.0
Date: Mon, 8 Sep 2003 13:44:47 -0400

 Looks like scheduler-locking is not always available at 'break main'.
 
   # Red Hat Linux 8.0, gcc 3.3.1, gdb 5.3.91, "hello world"
   bash-2.05b$ /berman/migchain/install/target/native/gdb-5.3.91/bin/gdb a.out
   GNU gdb 5.3.91
   Copyright 2003 Free Software Foundation, Inc.
   GDB is free software, covered by the GNU General Public License, and you are
   welcome to change it and/or distribute copies of it under certain conditions.
   Type "show copying" to see the conditions.
   There is absolutely no warranty for GDB.  Type "show warranty" for details.
   This GDB was configured as "i686-pc-linux-gnu"...
   (gdb) break main
   Breakpoint 1 at 0x804832e
   (gdb) run
   Starting program: /berman/home/mec/tmp/a.out
 
   Breakpoint 1, 0x0804832e in main ()
   (gdb) set scheduler-locking on
   Target 'child' cannot support this command.
 
 But it works if the target program has threads and the thread
 messages have been printed.
 
   Breakpoint 1 at 0x80484c6: file /berman/migchain/source/gdb-5.3.91/gdb/testsuite/gdb.threads/schedlock.c, line 18.^M
   (gdb) run ^M
   Starting program: /berman/fsf/_today_/berman/test/gdb.threads/schedlock ^M
   [New Thread 8192 (LWP 14682)]^M
   [Switching to Thread 8192 (LWP 14682)]^M
   ^M
   Breakpoint 1, main () at /berman/migchain/source/gdb-5.3.91/gdb/testsuite/gdb.threads/schedlock.c:18^M
   18          for (i = 0; i < NUM; i++)^M
   (gdb) set scheduler-locking off^M
   (gdb) PASS: gdb.threads/schedlock.exp: scheduler locking set to none
 
 Note that the user has the stock Red Hat gdb, gdb 5.2.1-4.
 Try upgrading to gdb 5.3.91 -- we are not fixing bugs in
 gdb 5.2.1 any more.
 
   ftp://sources.redhat.com/pub/gdb/snapshots/branch/gdb-5.3.91.tar.bz2
 
 Michael C


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