No line number information available
Brian Kuschak
bkuschak@yahoo.com
Thu Aug 8 14:00:00 GMT 2002
I'm debugging a linux kernel module. The code is
compiled with -g, and I loaded the symbol file into
gdb:
add symbol table from file "fs/fat/fat.o" at
.text_addr = 0xcdae1060
.rodata_addr = 0xcdea7530
.data_addr = 0xcdae81e8
.sdata_addr = 0xcdae8420
.sbss_addr = 0xcdae842c
.bss_addr = 0xcdae8430
GDB doesn't find line numbers for the code. However
'objdump -S fs/fat/fat.o' shows line numbers just
fine. Why doesn't GDB find them?
(gdb) list fat_scan
No line number information available for address
0xcdae70f0 <fat_scan>
Strangely, (since fat.o is composed of multiple source
files), GDB does find line numbers for some of those
files:
(gdb) list fat_fs_panic
Line 45 of "misc.c" starts at address 0xcdae61a8
<fat_fs_panic+24> and ends at 0xcdae61ac
<fat_fs_panic+28>.
What is wrong here? I tried -g, -gstabs, -gdwarf.
-Brian
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
More information about the Gdb
mailing list