Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org
Subject: Re: [rfc] Adjust address size on MIPS
Date: Fri, 03 Aug 2007 19:28:00 -0000	[thread overview]
Message-ID: <200708031928.l73JSNdr013768@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <20070803185917.GA28107@caradoc.them.org> (message from Daniel 	Jacobowitz on Fri, 3 Aug 2007 14:59:17 -0400)

> Date: Fri, 3 Aug 2007 14:59:17 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb-patches@sourceware.org
> Mail-Followup-To: Mark Kettenis <mark.kettenis@xs4all.nl>,
> 	gdb-patches@sourceware.org
> Content-Disposition: inline
> X-XS4ALL-DNSBL-Checked: mxdrop6.xs4all.nl checked 208.75.86.248 against DNS blacklists
> X-Virus-Scanned: by XS4ALL Virus Scanner
> X-XS4ALL-Spam-Score: 0.0 () DK_POLICY_SIGNSOME
> X-XS4ALL-Spam: NO
> Envelope-To: mark.kettenis@xs4all.nl
> X-UIDL: 1186167567._smtp.mxdrop6.29859,S=3540
> 
> On Fri, Aug 03, 2007 at 08:37:28PM +0200, Mark Kettenis wrote:
> > > Date: Fri, 3 Aug 2007 13:58:22 -0400
> > > From: Daniel Jacobowitz <drow@false.org>
> > > 
> > > I recently tried to use a 64-bit stub to debug an O32 MIPS program.
> > > It fell down because GDB would send a "m83000000" packet, instead of
> > > the proper "mffffffff83000000" packet (sign extended 64-bit
> > > addresses).  I think that if a stub sends us some 64-bit registers in
> > > the "g" packet, the polite thing to do would be to send it 64-bit
> > > addresses by default.
> > > 
> > > Does this sound wrong to anyone? 
> > 
> > This feels like a bad hack to me.  If it is sending 64-bit addresses
> > should PROPERTY_GP64 be set in the first place?
> 
> Isn't that exactly when it should be set?

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?

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.


  reply	other threads:[~2007-08-03 19:28 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 [this message]
2007-08-03 19:36       ` 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=200708031928.l73JSNdr013768@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.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