From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] Adjust address size on MIPS
Date: Fri, 03 Aug 2007 19:36:00 -0000 [thread overview]
Message-ID: <20070803193631.GA495@caradoc.them.org> (raw)
In-Reply-To: <200708031928.l73JSNdr013768@brahms.sibelius.xs4all.nl>
On Fri, Aug 03, 2007 at 09:28:23PM +0200, Mark Kettenis wrote:
> Sorry, I meant to write "shouldn't PROPERTY_GP64 have been set in the
> first place.
>
> Or differently phrased, if we receive a g packet with 64-bit we set
> PROPERTY_GP64 isn't it? So shouldn't we use that property to set
> decide whether we should sign extend the values in m packets?
Yes. That's what this patch (hopefully) will do: if we detect 64-bit
registers, tell the rest of GDB to assume 64-bit addresses. The
problem comes from the default address size being the pointer size,
and all the attendant MIPS ABI confusion.
> I guess the fundamental problem here is that there is no consensus
> about how gdb should handle running 32-bit mips code on a 64-bit cpu.
> Should it present the isa of the executable, or should it present the
> isa of the hardware the executable is running on.
Amen. I've tried to improve this lately, but it's still rather a mess.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-08-03 19:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 17:58 Daniel Jacobowitz
2007-08-03 18:38 ` Mark Kettenis
2007-08-03 18:59 ` Daniel Jacobowitz
2007-08-03 19:28 ` Mark Kettenis
2007-08-03 19:36 ` Daniel Jacobowitz [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=20070803193631.GA495@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
/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