GDB can't find symbols without main

Programming, for all ages and all languages.
Post Reply
User avatar
Khaoticmind
Member
Member
Posts: 29
Joined: Tue Nov 18, 2008 1:06 pm
Location: Brazil

GDB can't find symbols without main

Post by Khaoticmind »

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
Post Reply