Bochs GDB stub

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
Crazed123
Member
Member
Posts: 248
Joined: Thu Oct 21, 2004 11:00 pm

Bochs GDB stub

Post by Crazed123 »

I've compiled and set up Bochs correctly to run its GDB stub and have remotely attached GDB to Bochs running my kernel successfully. The issue comes when I try to debug the kernel. GDB only seems to understand certain source code lines as being such, when I break at the beginning of main I can stepi as far as a I want, but if I enter "next" to go to the next source line or "step" GDB just runs the kernel as though I'd said "continue". Also, whenever I look up the value of a variable it reports a value of 0xffffffff.

What's going on with this thing? It reports being able to read the symbols from my kernel correctly!
Post Reply