This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Redboot and builtin functions
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: Re: [ECOS] Redboot and builtin functions
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Thu, 19 Oct 2000 12:31:21 +0200
- Cc: "Ecos-List (E-mail)" <ecos-discuss at sourceware dot cygnus dot com>
- References: <5AF611D83988D4118ACF00E0B10400540557D1@mr-intranet.sdesigns.net>
> About builtins functions, memcpy, memset ...
>
> I've seen that memset and memcpy are defined and implemented in multiple
> places.
>
> One of this place is generic-stub.c where a comment says that the stub can't
> use the same memcpy and memset than the rest (I can't see really why but why
> not..)
We had a problem where we needed to single step through memcpy when we
had some data corruption going in. The gdb stub itself uses memcpy, so
you end with a break point in the code handling the break point and it
all dies horribly. The static definitions of memcpy in the stub make
sure the stub has its own memcpy functions which will never get a
break point in it and you can then debug the globel memcpy functions.
Andrew