|
From: Eric S. <eri...@gm...> - 2011-12-12 21:46:13
|
Hi, I would like write a simple script with valgrind which should be able to execute arbitrary binaries printing out all of the incremental values of the program counter. My Googling around hasn't turned up either existing tools with this functionality or pointers on how to go about implementing such a thing. Can anyone here either point me towards an existing tool, or suggest how I should go about building my own, is there a Valgrind API I can call from C, or is there a way to /script/ Valgrind? Many Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte/ |
|
From: Eric S. <eri...@gm...> - 2011-12-22 02:46:53
Attachments:
tracer-64.c
|
Just to follow up, this was fairly easy to do with ptrace. I'll attach the small resulting C file below in case anyone is interested, or to seed future Google searches. |