This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [rfa] Change line to long


Kevin Buettner:
> Is there any reason not to make the type of ``line'' an unsigned long?

Looking at 'struct symbol', the type of ``line'' is an unsigned short
so that it will pack well with 'namespace' and 'aclass', which are of
type BYTE_BITFIELD.

However, some time ago, BYTE_BITFELD was nerfed anyways.  So I believe
that sizeof(symbol) will not increase if you change ``line'' to a
32-bit type.

I like unsigned int better than unsigned long because it takes less
space on 64-bit hosts.

Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"

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