This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

X debugging


Hi,
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?


ls -l /usr/local/bin/X


lrwxrwxrwx 1 root staff 4 2006-07-11 14:25 /usr/local/bin/X -> Xorg


ls -l /usr/local/bin/Xorg


-rwsr-sr-x 1 root staff 7592426 2006-07-11 14:25 /usr/local/bin/Xorg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]