public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Jon Ringle" <JRingle@vertical.com>
To: "Jim Blandy" <jimb@codesourcery.com>, 	"Jon Ringle" <jon@ringle.org>
Cc: <gdb@sourceware.org>
Subject: RE: No line number info debugging kernel modules with gdb	6.6.90.20070926-cvs (gdb 6.7 branch)
Date: Tue, 02 Oct 2007 22:54:00 -0000	[thread overview]
Message-ID: <4DD3AF7ECBBC43409BA36508938D01851B00FD@CVAEX1.VERTICAL.COM> (raw)
In-Reply-To: <m31wcdxknh.fsf@codesourcery.com>

Jim Blandy wrote:
> Well, I'm pretty confused.
> 
> For starters, the output from 'maint print symbols' includes a line
> 325, but the output from 'readelf -wil' shows no such line.
> 
> Then, GDB has set the breakpoint on vert_dst_nopage_mmap at
> 0xbf1342b4, but 'maint print symbols' says that function's block
> covers the addresses 0xbf13434c..0xbf1343b4, which doesn't cover the
> breakpoint's address.

The output that I got from 'maint print symbols' and the output from
'readelf -wil' were from two different runs and I think I may have
inserted some code between these two runs that may explain this
inconsistency. I can do get you fresh output of all of it if you'd like.

> 
> The more inconsistencies you find, the more information you have about
> the bug, I guess, but I can't see the unifying story here.
> 
> One last thing: John, could you 'set debug remote 1' before connecting
> to your target, and see if it's sending a 'qOffsets' packet?  If it
> does, then that gets applied to symfile_objfile, which in your case
> would have been dstdrv.ko.  But I'd expect any qOffsets received from
> the kernel to be meant for vmlinux; the remote stub has no idea you've
> loaded dstdrv.ko.

Will do this tonight.

> 
> If that's what's going on, then it might help to connect to the target
> before doing the add-symbol-file.

Ok

  reply	other threads:[~2007-10-02 22:54 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
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 [this message]
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=4DD3AF7ECBBC43409BA36508938D01851B00FD@CVAEX1.VERTICAL.COM \
    --to=jringle@vertical.com \
    --cc=gdb@sourceware.org \
    --cc=jimb@codesourcery.com \
    --cc=jon@ringle.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).