Re: No line number info debugging kernel modules with gdb 6.6.90.20070926-cvs (gdb 6.7 branch)

Jon Ringle
2007-09-29T01:28:40Z

Daniel Jacobowitz wrote:
> On Fri, Sep 28, 2007 at 04:49:43PM -0700, Jim Blandy wrote:
>
>> Okay. Some of the line table entries have been relocated into the
>> module's actual range (0xbf13100 on up), but others still look to me
>> like offsets within the .ko. Can you post the output from running
>> 'readelf -wil' on your .ko file?
>>
>
> add-symbol-file doesn't relocate everything. You have to give it a
> separate value for every section.
>
>
So, do I need to put all the sections that I find in
/sys/module/dstdrv/sections/.[a-z]* on the target or is there a specific
subset of this that would suffice?

[root@isc1 ~]# ls /sys/module/dstdrv/sections/.[a-z]*
/sys/module/dstdrv/sections/.bss
/sys/module/dstdrv/sections/.rodata
/sys/module/dstdrv/sections/.data
/sys/module/dstdrv/sections/.rodata.str1.8
/sys/module/dstdrv/sections/.exit.text
/sys/module/dstdrv/sections/.strtab
/sys/module/dstdrv/sections/.gnu.linkonce.this_module
/sys/module/dstdrv/sections/.symtab
/sys/module/dstdrv/sections/.init.text
/sys/module/dstdrv/sections/.text