Simultaneous uses of fprintf() in several threads.
John Birch
jbb at kdevelop.org
Sat Nov 11 11:52:55 GMT 2000
Hmm,
Not sure where the problem may be here - so lets start with...
What do you get if you run (in a konsole)
gdb progname
gdb> run
What version of gdb do you have?
jbb
On Friday 10 November 2000 17:51, Le Coent Yannick wrote:
> Hello,
>
> I have got a problem when using the KDevelop debugger.
>
> This is the source I used.
>
> <<main.c>>
>
> This is what the code does:
> 1. The main() function displays "1:Main begin\n" to stdout
> 2. Then it creates thread#1 which does some fprintf() too.
> 3. Then Thread#1 creates thread#2 which also uses fprintf().
> 4. When Thread#2 has ended, Thread#1 does again some fprintf()
> 5. Adn when Thread#1 has ended, main() uses again fprintf().
>
> When the application is launched without the debugger, I have got:
> 1:Main begin
> 2:Entering thread #1!
> 3:Waiting for end of thread #2!
> 4:Entering thread #2!
> 5:Leaving thread #2!
> 6:Leaving thread #1!
> 7:Main end
>
> When the application is launched by the KDevelop debugger, I have got:
> 1:Main begin
> 2:Entering thread #1!
> 4:Entering thread #2!
> 5:Leaving thread #2!
>
> I do not know why I do not get the lines "6:" and "7:".
>
> Thanks for any help,
> Yannick LE COENT
> SIEMENS Réseaux Informatiques et Télécommunications
> 3, rue Blaise Pascal
> F - 22300 LANNION
>
> Tel.: +33-2-96 48 74 26
> Fax: +33-2-96 48 74 73
> E-mail: Yannick.LeCoent at srit.siemens.fr
----------------------------------------
Content-Type: application/octet-stream; charset="iso-8859-1"; name="main.c"
Content-Transfer-Encoding: 7bit
Content-Description:
----------------------------------------
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list