[ECOS] New memory allocation debug feature

Øyvind Harboe oyvind.harboe@zylin.com
Fri Jun 18 15:06:00 GMT 2004


Quoting Andrew Lunn <andrew@lunn.ch>:

> > > You also need to provide an implementation in libtarget.a for when the
> > > application does not have such a function. eg all the test programs
> > > will not provide this function, so will fail to link when your new
> > > option is enabled. So please add a week function which does nothing,
> > > or maybe throws an CYG_FAIL().
> > 
> > Hmmm... Can this be done without adding a new source file? 
> 
> Can you declare a function using C calling convention in a C++ file? I
> don't know, im a C programmer. If you can, i suggest you add it to the
> end of malloc.cxx

I found it easiest to just add a new debug.cxx file.

New patch attached.

> > You should try emacs. 

I use emacs all the time, but from different computers, so I find that I don't 
want to spend the time configuring it.




Øyvind

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: memdebug.txt
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040618/c3c170a0/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug.cxx
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040618/c3c170a0/attachment.cxx>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list