Re: [commit] Support 64-bit constants/enums on 32-bit host [Re: [PATCH] Allow 64-bit enum values]

Jan Kratochvil
2012-04-17T19:09:26Z

On Tue, 17 Apr 2012 16:32:54 +0200, Tom Tromey wrote:
> I am thinking that presumably people who build a 32-bit gdb without
> --enable-64-bit-bfd are interested in the smallest memory footprint.
> Also presumably they are not likely to be debugging many 64 bit
> processes or perhaps even using enums with values requiring 64 bits;
> certainly those would be relatively rare cases. So, if LOC_CONST_BYTES
> works, it would be an overall memory savings.

While I would never have that idea myself I can also do:

#ifdef BFD64
LONGEST ivalue;
#else
long ivalue;
#endif

It always keeps the memory footprint and makes 64-bit constants working on
32-bit gdb --enable-64-bit-bfd builds.

Regards,
Jan