XFree86 GDB Support

gdb-5.1-1.i386.rpm RPM package for 5.1 with support for XFree86 loadable modules.

This was built using the gdb-5.1-1 source RPM from the current RedHat "Rawhide" distribution.

You can find here on RedHat's site or you could try one of the mirror sites.

It was compiled on a system running RH 7.1, it should install on 7.1 or 7.2

gdb-5.1-linux-static.gz The same executable as in the RPM above, but statically linked. Possibly it will run on non-RedHat systems.
gdb-5.1-fbsd-static.gz A version compiled from the same source as the two above but for Free BSD
gdb.spec The "spec" file modified to include the xfree modules patch
gdb-5.1-xfree.patch The actual modules support patch

To build a version for other distributions or operating systems you will need at least a copy of the gdb 5.1 source code and the patch above.

For platforms which use ELF as their native format and uses SVr4 style shared libraries adding support should be a question of adding xfreemod.o to the NATDEPFILES macro in the .mh file and #including xfreemod.h in the nm-.h file, just after the #include for solib.h