From: Daniel Jacobowitz <drow@mvista.com>
To: Miles Bader <miles@gnu.org>
Cc: uclinux-dev@uclinux.org, gdb@sources.redhat.com
Subject: Re: gdbserver relocation?
Date: Mon, 24 Feb 2003 14:28:00 -0000 [thread overview]
Message-ID: <20030224142831.GB24793@nevyn.them.org> (raw)
In-Reply-To: <buok7fqqdzi.fsf@mcspd15.ucom.lsi.nec.co.jp>
On Mon, Feb 24, 2003 at 05:28:33PM +0900, Miles Bader wrote:
> Hi,
>
> I've been trying to get gdbserver working on the v850, and I'm wondering
> the m68k port deals with the address offset between the symbol file and
> the actual executable, since unlike in normal linux, the executable gets
> relocated at runtime in uClinux in a user visible way.
>
> Does gdb itself have a `set base address' command? I saw the `section'
> command, but it didn't seem to have any useful effect.
>
> It seems to me that it has to be gdb that does the offseting, since
> gdbserver doesn't know which values would need adjustment (e.g.,
> returned register values).
You're right. Gdbserver doesn't do anything with symbol lookup at
all; so this has to happen in the client.
You're wrong about referencing the m68k port though. GDB's m68k/linux
port (I assume that's what you meant) is for Linux, not uClinux.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-02-24 14:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-24 8:29 Miles Bader
2003-02-24 14:28 ` Daniel Jacobowitz [this message]
2003-02-24 15:26 ` Miles Bader
2003-02-24 15:43 ` Andrew Cagney
2003-03-04 2:28 ` Miles Bader
2003-03-04 3:03 ` Daniel Jacobowitz
2003-03-04 3:42 ` Miles Bader
2003-03-04 7:25 ` [uClinux-dev] " Greg Ungerer
2003-03-04 16:29 ` Andrew Cagney
2003-02-24 15:50 ` Daniel Jacobowitz
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=20030224142831.GB24793@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=miles@gnu.org \
--cc=uclinux-dev@uclinux.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