This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Error modifiying Cyg_Thread class...
- To: "Cristiano Ligieri Pereira" <cpereira at ics dot uci dot edu>
- Subject: RE: [ECOS] Error modifiying Cyg_Thread class...
- From: "Dan Conti" <danc at iobjects dot com>
- Date: Sat, 7 Jul 2001 13:48:31 -0700
- Cc: <ecos-discuss at sourceware dot cygnus dot com>
> > One thing to note, if you enable assertions in your kernel
> then things
> > like this will cause a halt, since there are a bunch of
> assertions to
> > check structure vs. class sizes at startup.
> >
> > -Dan
>
> How do a get away from this? Can I add assertions for the new
> members? Can
> I modify such assertions so that the new members are considered?
The assertions are in
Cyg_Check_Structure_Sizes::Cyg_Check_Structure_Sizes(), in
kernel/common/kapi.cxx.
It is just asserting that the class and the structure are the same size,
it doesn't really care what the current set of members are. Rather, it
is more concerned that if you have added or removed to the size of one
type that the other type reflects that change.
-Dan
>
> Thanks for replying,
> Cristiano.
>
>
>