Absolutely. Nothing custom, the build errors have all been fixed at least in CURRENT so I just had to get the kernel config right.
Ddb and kgdb are mutually exclusive so your kernel must be built for one or the other. For ddb It's there by default in GENERIC, you just have to set sysctl machdep.kbdreset to 2 and reboot so you can break in with ctrl-alt-delete, see man ddb page. If you want to be able to parse structs easier add this to /usr/src/sys/conf/GENERIC and build new kernel Option DDB_STRUCT For kgdb Uncomment these options in /usr/src/sys/arch/i386/conf/GENERIC or make a different copy Option KGDB Option "KGDB_DEVNAME=\"com\"",KGDBADDR=0x2f8,KGDBRATE=9600 Pay attention to the 0x2f8 there, you may need 0x3f8 to listen on com0 rather than com1 Run Dmesg | grep com to see Then in file /usr/src/sys/conf/GENERIC (or your debug copy) comment out the DDB stuff #option DDB #option DDB_SAFE_CONSOLE Uncomment Makeoptions DEBUG=-g Then build your kernel Comments and corrections are welcome. Justin -----Original Message----- From: sickm...@lavabit.com [mailto:sickm...@lavabit.com] Sent: Tuesday, January 08, 2013 6:44 AM To: Justin Mayes Cc: misc@openbsd.org Subject: Re: Kernel Debugging On 17:04 Mon 07 Jan , Justin Mayes wrote: > I got this. I had 2 com ports on this old target desktop and when I > switched the serial cable to the right one, it worked. I have working > DDB kernel with structs as well as a working kgdb kernel with current. > > Justin Good. Any chance to get patches and kernel config from you? [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]