Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tavis Ormandy <taviso@sdf.lonestar.org>
To: gdb@sources.redhat.com
Subject: Re: importing symbols from unsupported BFD target
Date: Tue, 30 Jun 2009 20:54:00 -0000	[thread overview]
Message-ID: <gemini.km2kpt010efxc08ad.taviso@sdf.lonestar.org> (raw)
In-Reply-To: <20090630171747.GA31917@caradoc.them.org>

Daniel Jacobowitz <drow@false.org> wrote:

> On Tue, Jun 30, 2009 at 06:59:06PM +0200, Tavis Ormandy wrote:
> > This basically works, `info address symname`, `b symname`, `x/i symname`
> > all work, but `info symbol address` fails, and stacktraces, info
> > breakpoints, etc, etc are not symbolised.
> > 
> > Can anyone suggest what I might be missing?
> 
> I think you're going to have to create sections in the file; this sounds
> like it's going to be specific to ABS symbols.  A NOBITS (bss) section is
> probably fine though it may need to be marked executable too.
> 

Ahh, you were absolutely right :-)

It took some massaging to convince ld to create the output I wanted, but it
does appear to have worked, and I can now do basic remote debugging of the
windows kernel using gdb.

And the backtrace is now symbolised correctly:

Breakpoint 23, 0x805c517d in PsImpersonateClient ()
(gdb) bt
#0  0x805c517d in PsImpersonateClient ()
#1  0x805ece9b in SeImpersonateClientEx ()
#2  0x8059a68a in NtImpersonateClientOfPort ()
#3  0xee392c01 in ?? ()
...

Which looks exactly right. Really pleased I can work on this from within
gdb.

Thanks, Tavis.

-- 
-------------------------------------
taviso@sdf.lonestar.org | finger me for my pgp key.
-------------------------------------------------------


      reply	other threads:[~2009-06-30 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30 17:05 Tavis Ormandy
2009-06-30 17:17 ` Daniel Jacobowitz
2009-06-30 20:54   ` Tavis Ormandy [this message]

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=gemini.km2kpt010efxc08ad.taviso@sdf.lonestar.org \
    --to=taviso@sdf.lonestar.org \
    --cc=gdb@sources.redhat.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