public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ecos & valgrind
@ 2007-08-30 11:59 Guillaume Lewalle
  2007-08-30 12:13 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Lewalle @ 2007-08-30 11:59 UTC (permalink / raw)
  To: ecos-discuss

hello,

is it possible to use valgrind (or some other tool) with ecos ?

if yes, anything special to do ? because all test i did with it doesn't 
work... :-(

-- 
Guillaume Lewalle
guillaume.lewalle@spidcom.com

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] ecos & valgrind
  2007-08-30 11:59 [ECOS] ecos & valgrind Guillaume Lewalle
@ 2007-08-30 12:13 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-08-30 12:13 UTC (permalink / raw)
  To: Guillaume Lewalle; +Cc: ecos-discuss

On Thu, Aug 30, 2007 at 01:59:17PM +0200, Guillaume Lewalle wrote:
> hello,
> 
> is it possible to use valgrind (or some other tool) with ecos ?
> 
> if yes, anything special to do ? because all test i did with it doesn't 
> work... :-(

I assume you are using the synthetic target in Linux.

I think the answer is no, it is not possible. valgrind, at least when
checking for memory leaks, will replace the glibc malloc with its
malloc. However eCos does not use the glibc malloc. It uses the eCos
malloc. valgrind has no way to replace this, since we don't even link
with glibc. Also valgrind will rely on runtime linking, ie using .so
libraries. malloc is only linked into the image at run time and it is
then that it intercepts and puts its own malloc in place. eCos is
statically linked, so there is no chance for valgrind to get its
malloc used. 


     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-30 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-30 11:59 [ECOS] ecos & valgrind Guillaume Lewalle
2007-08-30 12:13 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).