Page 1 of 1

gdb core dump

Posted: Wed Sep 10, 2008 12:56 pm
by uglyoldbob
I am to a point in my development where I need to create and analyze a core dump. I am currently using qemu/bochs with gdb stubs enabled.

For bochs:
gdbstub: enabled=1, port=1234
For qemu:
-s

I load gdb like this:
gdb -s kernel.bin -ex 'target remote :1234'

kernel.bin is loaded with grub. I can do normal debugging stuff with gdb.
I cannot get (or I cannot figure out how to) gdb to generate a core dump.
When I run "generate-core-file", I get the error, "No target."
There must be an easier way for me to get a core dump generated.