Re: how to debug a program when the session freezes
- From: Andrew Sobala <aes gnome org>
- To: Rod Butcher <rbutcher hyenainternet com>
- Cc: gnome-bugsquad gnome org
- Subject: Re: how to debug a program when the session freezes
- Date: Mon, 09 Jan 2006 21:51:22 +0000
Rod Butcher wrote:
Can somebody tell me how to get a gdb trace when the app I'm debugging
freezes my X session ? I'm running gnome-system-monitor from a
terminal : gdb gnome-system-monitor which freezes up the X session when
I click on the top menu line. The only way I can get out is by by
al-ctl-f1 and killing the X session from the linux command line. How do
I send the gdb output to a file for later retrieval, and is it possible
to get the stack trace some other way, without X ?
thanks
You can control-alt-F1 first, export DISPLAY=:0, then run gdb from
there. The app should appear in your X session, but gdb will run in the
terminal.
In terms of sending the gdb output to a file, hopefully this is helpful:
http://sources.redhat.com/gdb/current/onlinedocs/gdb_3.html#SEC13
--
Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]