From: Joel Brobecker <brobecker@adacore.com>
To: Venkatesh Srinivas <me@acm.jhu.edu>
Cc: gdb@sourceware.org
Subject: Re: Using symbols from
Date: Mon, 30 Nov 2009 17:33:00 -0000 [thread overview]
Message-ID: <20091130162927.GF4034@adacore.com> (raw)
In-Reply-To: <f75780240911300802y7c1a3f6ekfc3f0db7425927ef@mail.gmail.com>
> I have the output of the platform specific nm run against the binary;
> is there any way I can teach gdb about the data from nm (at least the
> entry addresses to my functions, location of some global variables?).
It's not something that I have tried, so take with a grain of salt.
The only way I can think of is to transform the symbol-table data
into another format that GDB understands (for instance, an ELF symbol
table). For instance, if you could do an objcopy from your format to
ELF, then you can load the symbols from that ELF object file using
add-symbol-file.
--
Joel
next prev parent reply other threads:[~2009-11-30 16:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 17:02 Venkatesh Srinivas
2009-11-30 17:33 ` Joel Brobecker [this message]
2009-11-30 18:57 ` Paul Pluzhnikov
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=20091130162927.GF4034@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=me@acm.jhu.edu \
/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