From: Oscar F. <of...@wa...> - 2003-06-18 21:45:24
|
"Francois Ferrand" <fra...@en...> writes: > I am trying to do some debugging using GDB (with emacs as a front end). > When I run a program from GDB, (without setting any breakpoint) is there a > way to tell GDB to "pause" the execution of the program ? So that it return > control to me and allows me to examine what the application is doing > (actually, it seems my application is deadlocked, so I would like to know > where/why). [snip] If you app is console-mode, just press Control-C. Afterwards, you can use the 'thread' command to switch to the thread you want ('thread 1' for the main thread) and you will be able to obtain a stack trace. I don't know how to pause GUI apps. HTH -- Oscar |