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: Redboot and builtin functions


Jesper Skov wrote:
> 
> >>>>> "Fabrice" == Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:
> 
> Fabrice> One of this place is generic-stub.c where a comment says that
> Fabrice> the stub can't use the same memcpy and memset than the rest
> Fabrice> (I can't see really why but why not..)
> 
> Because while you are debugging the application, you may be setting
> breakpoints at various places and single-stepping your way through
> memcpy and memset. If the stub used the same functions as the
> application it would crash, hang, or format the disks on your
> neighbor's WinDOS machine.
> 
> Basically, the stub needs to be fully detached from the
> application/eCos to function properly.

That's fair enough for stubs inside the application. It doesn't apply to
redboot though - the memcpy() etc. it links in will be a separate instance
to the ones in the app.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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