Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sourceware.org
Subject: Re: [rfc] Autoselect x86_64 or i386 based on the remote g packet       size
Date: Mon, 20 Nov 2006 04:26:00 -0000	[thread overview]
Message-ID: <20061120042622.GA29356@nevyn.them.org> (raw)
In-Reply-To: <20061109214924.GA21448@nevyn.them.org>

On Thu, Nov 09, 2006 at 04:49:24PM -0500, Daniel Jacobowitz wrote:
> Honestly, this clever auto-detection is much more useful for MIPS than
> it is for i386/AMD64; for MIPS, an executable file doesn't necessarily
> contain the answer to the question, but for i386 it always does.  I
> implemented the AMD64 bits after I had it working for MIPS, as a demo
> when Jan K. posted an even kludgier patch to warn about this case a
> couple of weeks ago.  If you don't like this bit, I'd be happy to drop
> it, and make gdbserver report the architecture manually when I advance
> to the XML stage of these target descriptions.  I won't mourn the i386
> parts of this patch.  Would you rather I did that?
> 
> (I'd like to hold on to the MIPS bits, because they're solving a
> slightly different problem, and because I know they're useful with
> existing non-gdbserver stubs that would be harder to fix.)

Hi Mark,

For avoidance of doubt, I'm definitely dropping the i386/amd64 patch.
It was a stretch to begin with.  I've already begun working on a patch
to specifiy the architecture explicitly and I really hope I'll have it
finished this week (but the way this entire project's been dragging
out, I'm not sure...).

Could you let me know if using the g packet size approach for the
clearer-cut MIPS situation is OK with you?  The difference, in my
opinion, is that it doesn't reflect a change in architecture; you can
run the same o32 ABI program on a 32-bit or 64-bit system, so it would
be nice if GDB could handle 32-bit or 64-bit regsets automatically.
This prevents a mips64 gdbserver having to figure out the child's ABI.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2006-11-20  4:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09 20:58 Daniel Jacobowitz
2006-11-09 21:36 ` Mark Kettenis
2006-11-09 21:49   ` Daniel Jacobowitz
2006-11-20  4:26     ` 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=20061120042622.GA29356@nevyn.them.org \
    --to=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