Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@codesourcery.com>
To: Jon Ringle <jon@ringle.org>
Cc: 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: Tue, 02 Oct 2007 21:38:00 -0000	[thread overview]
Message-ID: <m31wcdxknh.fsf@codesourcery.com> (raw)
In-Reply-To: <46FDB801.5010401@ringle.org>


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 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.

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


  reply	other threads:[~2007-10-02 21:38 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 [this message]
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=m31wcdxknh.fsf@codesourcery.com \
    --to=jimb@codesourcery.com \
    --cc=JRingle@vertical.com \
    --cc=gdb@sourceware.org \
    --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