This is the mail archive of the
mailing list for the GDB project.
- From: Russell Shaw <rjshaw at netspace dot net dot au>
- To: gdb at sourceware dot org
- Date: Tue, 11 Jul 2006 15:00:14 +1000
- Subject: X debugging
I'm trying to step through /usr/local/bin/X with gdb.
I'm using ddd/gdb on my main pc, and using it with ssh
to debug X on another remote pc.
In gdb/ddd, X complains with:
Fatal server error:
Cannot open log file "/usr/local/var/log/Xorg.0.log"
I did: ddd X
The line that fails is:
if ((logFile = fopen(logFileName, "w")) == NULL)
FatalError("Cannot open log file \"%s\"\n", logFileName);
Do i need to start X as a root user or something?