From: Daniel Jacobowitz <dan@codesourcery.com>
To: Simo Melenius <smelenius@nvidia.com>
Cc: gdb@sourceware.org
Subject: Re: Program image not relocated if it's a solib already loaded by dlopen()
Date: Mon, 19 Apr 2010 14:22:00 -0000 [thread overview]
Message-ID: <20100419142148.GA26752@caradoc.them.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1004162219280.1072@geist>
On Fri, Apr 16, 2010 at 10:20:39PM +0300, Simo Melenius wrote:
> Assume I'm developing ``libfoo.so'' and am not particularly
> interested in ``foo'' itself. So, I start ``foo'', attach gdbserver
> to it, and invoke gdb on the host platform as follows:
>
> $ arm-eabi-gdb libfoo.so
First of all, I assume this is an arm-linux-gnueabi GDB. If it were
an ARM EABI gdb, you wouldn't get shared library support at all. But
that may be your problem.
Secondly, don't do this. If you want to debug libfoo.so, just make
sure GDB has search paths set up, and start GDB on the executable.
Otherwise, it can not find the load map. No shared library support is
going to work properly in this case.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2010-04-19 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 19:20 Simo Melenius
2010-04-19 14:22 ` Daniel Jacobowitz [this message]
2010-04-19 15:42 ` Simo Melenius
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=20100419142148.GA26752@caradoc.them.org \
--to=dan@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=smelenius@nvidia.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