how to print all debug(printf or cout) statements before the assert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have a program like

1)printf("%s %d",__FILE__,__LINE__);
2)printf("%s %d",__FILE__,__LINE__);
3)printf("%s %d",__FILE__,__LINE__);
4)assert(0);


1)My question is : are the printf/cout statements are run by separate threads?
2)In the above program some time prinrf statement on line1 is printed.
some times upto line 2, some time upto line3.
why?
3) How to make sure that all the print statements, before the line
causing the crash , are printed ?

thanks.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux