This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

RE: Error modifiying Cyg_Thread class...


> > 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.
> 
> 
> 


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