|
From: Josef W. <Jos...@gm...> - 2005-09-12 00:44:41
|
On Thursday 08 September 2005 20:56, James Newsome wrote: > How difficult would it be to get Valgrind to be able to attach to a > process that is already running? It seems to me that the only stumbling > ... As others have said, it is not a design goal of VG to be able to attach to a running process, and would need quite much changes if possible at all. Intel's PIN tool, quite similar to VG, says to able to do this (but not for multithreaded code?). Aside from that, with VG, you could start your tool in non-instrument mode, and switch to full instrumentation later, by invalidating VG's translation cache. Thus your program first would run at speed of "valgrind --tool=none". Josef |