This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]