Debugging drivers?

Felix Kühling fxkuehl at
Sat Oct 30 15:58:02 PDT 2004

Am Sa, den 30.10.2004 schrieb Adam Jackson um 23:59:
> On Friday 29 October 2004 20:57, Jim Gettys wrote:
> > X11R6.8 has the ability to load .so files as well as the XFree86 loader,
> > and therefore is able to be debugged using a standard GDB.
> >
> > I don't know the exact details; IIRC Adam Jackson (ajax) did the work...
> >     - Jim
> Yep, that was me.  Feel free to drop me a line if you have any trouble making 
> dlloader modules work.

I had trouble until I cleaned /usr/X11R6/lib/modules. I still had old
non-DLL module laying around that would be loaded instead of the new
.so-ones causing relocation errors in the referencing module. In my case could not relocate xf86DoEDID_DDC1 when libddc.a was
loaded instead of The result was a crashed Xserver. I didn't
even get an error message in Xorg.0.log. It only printed an error
message on the text console. Maybe we should make xf86LoadSubModule
prefer .so-modules over .a-modules. And could relocation errors be
handled more gracefully (not sure if this is technically possible with
lazy relocations)?

Cool stuff otherwise if this really enables debugging of driver modules.



| Felix Kühling <fxkuehl at>            |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |

More information about the xorg mailing list