This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]