Re: Inserting instrument calls before and after a function

2010-02-16 Thread Harald Servat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm not afraid of gimplify, but you can check DynInst (http://www.dyninst.org). It's a runtime to modify a binary (in memory or in disk). Regards. En/na Saleel Kudchadker ha escrit: > Hi > > I am working on modifying gcc so that I can add

Inserting instrument calls before and after a function

2010-02-16 Thread Saleel Kudchadker
Hi I am working on modifying gcc so that I can add custom functions before the start and after the end of every function call in gcc. Much liek __cyg_profile_func_enter and exit but not when the function call has already been made. Is there a easy way to do it? I was concentrating on modifying