This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Private data members
Michael Snyder <msnyder@vmware.com> writes:
> Define struct breakpoint in breakpoint.h, put any public members
> in there, and then include a member "struct breakpoint_private"
> that is only a forward declaration.
That only works if this member is a pointer. You cannot have struct
members with incomplete types.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."