This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] Add a dwarf unit type to represent 24 bit values.
- From: John Darrington <john at darrington dot wattle dot id dot au>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: John Darrington <john at darrington dot wattle dot id dot au>, Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Thu, 27 Sep 2018 07:49:24 +0200
- Subject: Re: [PATCH 2/4] Add a dwarf unit type to represent 24 bit values.
- References: <20180829141845.26378-1-john@darrington.wattle.id.au> <20180829141845.26378-3-john@darrington.wattle.id.au> <878t4dvuyf.fsf@tromey.com> <20180926174157.mw5eocxlfmgliua7@jocasta.intra> <c4d38b96eee875c17d6b68d5c422e59c@polymtl.ca>
On Wed, Sep 26, 2018 at 10:53:34PM -0400, Simon Marchi wrote:
On 2018-09-26 13:41, John Darrington wrote:
> After discussion with the gcc folks, it seems that there is an easier
> and much simpler solution, which I'm attaching.
>
> J'
Err can you explain how this works, or link to the gcc discussion if it's
explained there? I must be missing something, because as far as I
understand, this will read 4 bytes when reading an address, when I
suppose it's encoded with 3 bytes in the DWARF info, isn't it?
Simon
The relevant discussion is here: https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00712.html
The bottom line is that the dwarf address size does not need to
correspond to the machine address size (and in general it does not) -
it just needs to be at least as long.
J'
--
Avoid eavesdropping. Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.