public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/11580] New: scheduler-locking breaks re-runs
@ 2010-05-07 18:37 k04jg02 at gmail dot com
  2010-05-12 17:36 ` [Bug threads/11580] " msnyder at sonic dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: k04jg02 at gmail dot com @ 2010-05-07 18:37 UTC (permalink / raw)
  To: gdb-prs

If you run gdb ./myapp, and then do:

(gdb) set scheduler-locking on

You get the output:

Target 'exec' cannot support this command.

If you run, the program first, then break, and set scheduler-locking, then it
works as expected. This is fine behavior. The behavior that I don't think makes
sense is that once you've run the program once and and have stopped at a
breakpoint or signal, etc., and have set scheduler-locking to on, if you then do:

(gdb) run

scheduler-locking will be on and only your main thread will ever execute! For
consistency sake, either run should reset scheduler-locking (my preference,
though maybe there's a reason this would be a bad idea?) or you should be able
to set it before starting the app. The current behavior is unintuitive -- my app
would just appear to deadlock whenever I reran it because the main thread would
wait for another thread to join.

Tested on Solaris 10.

-- 
           Summary: scheduler-locking breaks re-runs
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: threads
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: k04jg02 at gmail dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11580

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2022-11-29 20:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11580-4717@http.sourceware.org/bugzilla/>
2022-11-29 20:18 ` [Bug threads/11580] scheduler-locking breaks re-runs tromey at sourceware dot org
2010-05-07 18:37 [Bug threads/11580] New: " k04jg02 at gmail dot com
2010-05-12 17:36 ` [Bug threads/11580] " msnyder at sonic dot net
2010-05-12 17:52 ` k04jg02 at gmail dot com
2010-05-12 18:04 ` pedro at codesourcery dot com
2010-05-13 16:46 ` dje at google dot com
2010-05-13 17:12 ` pedro at codesourcery dot com
2010-05-13 17:17 ` pedro at codesourcery dot com
2010-05-13 17:21 ` pedro at codesourcery dot com

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