Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: drow@false.org
Cc: mark.kettenis@xs4all.nl, fnf@specifix.com, gdb-patches@sourceware.org
Subject: Re: [RFC] DWARF 2 address size != pointer size
Date: Fri, 12 May 2006 22:32:00 -0000	[thread overview]
Message-ID: <20060512.151851.65038908.davem@davemloft.net> (raw)
In-Reply-To: <20060512195634.GA16903@nevyn.them.org>

From: Daniel Jacobowitz <drow@false.org>
Date: Fri, 12 May 2006 15:56:34 -0400

> It's a code model thing.  It has 64-bit pointers, but all symbols are
> 32-bit, and IIRC it actually uses 32-bit ELF.

Sparc64 with -mcmodel=medlow is the same situation, but the DWARF
address sizes are still 64-bit and don't change based upon the 64-bit
code model selected.

I guess this is a side effect of using the MIPS 32-bit ELF target
rather than something explicit the MIPS backend of GCC is doing
to tinker with the DWARF output format?

Actually, there is a Sparc situation which is more like this MIPS
case.  For -mcpu=v8plus{,a,b} and friends, we're generating 32-bit
code and using 32-bit SPARC ELF, but certain registers are available
for full 64-bit integer operations (for "long long").  We don't handle
this in GDB currently because there is no easy way to get at the full
64-bit register values in a 32-bit process with a 32-bit gdb.  With a
64-bit GDB we can easily do this, and under Linux/Sparc there are
special versions of the ptrace commands which allow passing 64-bit
register values back and forth to/from a 32-bit debugger.

I've always wanted to add support for that, but it's going to be real
ugly stuff and take us away from the nice unified Sparc ptrace()
support which several Sparc targets are sharing right now.


  reply	other threads:[~2006-05-12 22:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-10 18:24 Fred Fish
2006-05-11 22:44 ` Jim Blandy
2006-05-12 14:21   ` Fred Fish
2006-05-12 18:19     ` Jim Blandy
2006-05-12 19:57 ` Mark Kettenis
2006-05-12 20:07   ` Daniel Jacobowitz
2006-05-12 22:32     ` David S. Miller [this message]
2006-05-12 22:42       ` 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=20060512.151851.65038908.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=drow@false.org \
    --cc=fnf@specifix.com \
    --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