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

[Bug gdb/10449] New: continues main thread when breaking into a secondary thread


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.


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