GDB can't find symbols without main
Posted: Wed Dec 17, 2008 8:57 am
So...
I'm trying to debug my kernel using gdb. But I can't see to get gdb to find the "boundaries" of my functions.
I notice that when i load my kernel with gdbtui (gdb -tui) it doesn't show my soruce files, what it does with a hello world program i tried.
So, messing around I found out that, if there is no main function gdb doesn't show the source files.
I'm currently using Ubuntu 8.10 with GDB 6.8. Anyone knows anything about it?
Also... I'm debugging with bochs, and when i connect to it i get an error in gdb: "warning: remote failure reply: Eff"
Ideas?
Cheers,
KM
I'm trying to debug my kernel using gdb. But I can't see to get gdb to find the "boundaries" of my functions.
I notice that when i load my kernel with gdbtui (gdb -tui) it doesn't show my soruce files, what it does with a hello world program i tried.
So, messing around I found out that, if there is no main function gdb doesn't show the source files.
I'm currently using Ubuntu 8.10 with GDB 6.8. Anyone knows anything about it?
Also... I'm debugging with bochs, and when i connect to it i get an error in gdb: "warning: remote failure reply: Eff"
Ideas?
Cheers,
KM