On Fri, 24 Sep 2004, Barry Scott wrote:

> I'm trying to debug a problem with the Unichrome VIA
> driver in XFree86 4.4.0.
> 
> How do you debug in the X server given that loadmod.c that
> seems to be loading all the code is not using mechanisms
> that allow gdb to know where the code is?
> 
> So far I've patched in a call to add messages to the XFree86 log
> detailing the address that each module is loaded at.
> 
> Surely there is an easier way?

There have been several patches to add xfree86 module support to gdb,
and talk of these patches going back into the gdb code-base.
Googling XFree86 module gdb found me this patch
        http://www.logix.cz/michal/devel/gdb-xfreemod/
and this reminder from 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg05907.html

 With the special gdb you need to explicitly load the modules
 in order to get a backtrace.  Ie, before you get the backtrace enter
    module /usr/X11R6/lib/modules
 at the gdb prompt to indicate where to get the modules from.

-- 
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]       http://www.dpmms.cam.ac.uk/~werdna

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to