This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: go32-nat, always a thread
On Sat, Aug 09, 2008 at 09:16:09PM +0200, Mark Kettenis wrote:
> Instead of
>
> struct foo {
> char c __attribute__((packed));
> int d __attribute__((packed));
> };
>
> you can (should?) write
>
> struct foo {
> char c;
> int d;
> } __attribute__((packed));
Indeed, should (even must). I believe old versions of GCC silently
ignored the packed attribute on fields, but I'm not 100% certain of
that - I must be mistaken if the construct in go32-nat.c previously
worked.
--
Daniel Jacobowitz
CodeSourcery