gdb core dump

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
uglyoldbob
Member
Member
Posts: 62
Joined: Tue Feb 13, 2007 10:46 am

gdb core dump

Post 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.
I have an 80386SX 20MHz 2MB RAM.
It is my testbed platform. Only has the 3.5" and 5.25" floppy drives.
Post Reply