public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/10449] New: continues main thread when breaking into a secondary thread
@ 2009-07-25 18:25 apaku at gmx dot de
  2009-07-26  5:07 ` [Bug gdb/10449] " tromey at redhat dot com
  2009-11-16 22:28 ` pedro at codesourcery dot com
  0 siblings, 2 replies; 3+ messages in thread
From: apaku at gmx dot de @ 2009-07-25 18:25 UTC (permalink / raw)
  To: gdb-prs

I've got a small test application here creating a GUI in the main thread and
starting two new threads within the window constructor. In both threads there's
a sleep() (one with 2 the other with 4 seconds) to keep them running a bit.

I then put a breakpoint at the start of the constructor and into the 4-second-
seems to continue the main thread once the breakpoint in the 4-second-sleep
thread is hit. So basically the order is:

create and start first extra thread
<n>
create and start second extra thread
<n>
some gui code
<n>
break into second extra thread
<n>
sleep(4)
<n>

At this point the gui from the main thread comes up, which only happens if the
main thread is continue'd and not halted anymore.

-- 
           Summary: continues main thread when breaking into a secondary
                    thread
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: apaku at gmx dot de
                CC: gdb-prs at sourceware dot org


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

------- 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] 3+ messages in thread

* [Bug gdb/10449] continues main thread when breaking into a secondary thread
  2009-07-25 18:25 [Bug gdb/10449] New: continues main thread when breaking into a secondary thread apaku at gmx dot de
@ 2009-07-26  5:07 ` tromey at redhat dot com
  2009-11-16 22:28 ` pedro at codesourcery dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2009-07-26  5:07 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2009-07-26 05:07 -------
Yes, a "next" will resume all other threads.
See "set scheduler-locking" for your options here.
(I forget offhand if this was in 6.8 or whether it is only in CVS gdb.)

-- 


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

------- 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] 3+ messages in thread

* [Bug gdb/10449] continues main thread when breaking into a secondary thread
  2009-07-25 18:25 [Bug gdb/10449] New: continues main thread when breaking into a secondary thread apaku at gmx dot de
  2009-07-26  5:07 ` [Bug gdb/10449] " tromey at redhat dot com
@ 2009-11-16 22:28 ` pedro at codesourcery dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pedro at codesourcery dot com @ 2009-11-16 22:28 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2009-11-16 22:28 -------
scheduler-locking was added to gdb over 10 years ago.

I'm closing this.  Please reopen if you have more info indicating a problem.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

------- 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] 3+ messages in thread

end of thread, other threads:[~2009-11-16 22:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-25 18:25 [Bug gdb/10449] New: continues main thread when breaking into a secondary thread apaku at gmx dot de
2009-07-26  5:07 ` [Bug gdb/10449] " tromey at redhat dot com
2009-11-16 22:28 ` 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).