Over the past several months I have ported kgdb to the version of gdb in ports.
I have a pending patch to the gdb port to add fork following, but once that is
done (and possibly after updating to 7.10) I will try to add my existing work
as a KGDB option on the port. Until such time, you can try the newer kgdb by
checking out my branch from git.
Here's my cheat sheet on how to build the newer kgdb. Note that if you build
a world with my cross-libkvm patches you should get a kgdb that can debug
i386 cores on amd64 and vice versa.
All of the targets that the native devel/gdb support have their backends
ported (so x86, sparc64, powerpc and powerpc64). I have not yet ported
arm or mips since those don't work for userland yet in upstream gdb. I
have only compiled non-x86 backends. Testing of the new kgdb on sparc64
and powerpc would be appreciated.
% git clone https://github.com/bsdjhb/gdb.git
% git checkout freebsd-7.9.1-kgdb
% fetch http://www.freebsd.org/~jhb/gdb/build
% pkg install devel/gdb
# Having gdb installed will mean you get the python bindings in the right
% pkg install gmake
# I think this is the only build tool you need?
% cd obj
# Replace 'obj' with 'obj.<arch>' for all but amd64
# ... wait
You will now have a binary at 'obj/gdb/kgdb'. I just run it from my obj
tree currently when testing. Once it becomes part of the port it will get
installed as /usr/local/bin/kgdb791 or some such.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"