Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jon Ringle <jon@ringle.org>
To: Jim Blandy <jimb@codesourcery.com>,
	Jon Ringle <JRingle@vertical.com>,
	  gdb@sourceware.org
Subject: Re: No line number info debugging kernel modules with gdb	6.6.90.20070926-cvs  (gdb 6.7 branch)
Date: Sat, 29 Sep 2007 02:06:00 -0000	[thread overview]
Message-ID: <46FDAA42.6060105@ringle.org> (raw)
In-Reply-To: <20070929002707.GA6310@caradoc.them.org>

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



  reply	other threads:[~2007-09-29  1:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27 20:11 Jon Ringle
2007-09-28  0:25 ` Jim Blandy
2007-09-28  3:47   ` Jon Ringle
2007-09-28 13:47   ` Jon Ringle
2007-09-28 16:01     ` Jon Ringle
2007-09-28 21:32     ` Jim Blandy
2007-09-28 22:06       ` ringlej
2007-09-29  0:27         ` Jim Blandy
2007-09-29  0:27           ` Daniel Jacobowitz
2007-09-29  2:06             ` Jon Ringle [this message]
2007-09-29  2:27               ` Daniel Jacobowitz
2007-09-29  7:38                 ` Jon Ringle
2007-10-02 21:38                   ` Jim Blandy
2007-10-02 22:54                     ` Jon Ringle
2007-10-02 20:26             ` Jim Blandy
2007-10-02 20:43               ` Daniel Jacobowitz
2007-09-29  1:28           ` Jon Ringle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46FDAA42.6060105@ringle.org \
    --to=jon@ringle.org \
    --cc=JRingle@vertical.com \
    --cc=gdb@sourceware.org \
    --cc=jimb@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox