This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] Change line to long
- To: ac131313 at cygnus dot com, gdb-patches at sourceware dot cygnus dot com, kevinb at cygnus dot com
- Subject: Re: [rfa] Change line to long
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Thu, 1 Feb 2001 12:36:17 -0800
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"