[PATCH 2/4] Add a dwarf unit type to represent 24 bit values.
John Darrington
john@darrington.wattle.id.au
Thu Sep 27 05:49:00 GMT 2018
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.
More information about the Gdb-patches
mailing list