[antlr-interest] C/C++ instrumentation tool
Nigel Sheridan-Smith
nbsherid at secsme.org.au
Fri Jun 17 20:04:33 PDT 2005
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Andy Tripp
> Sent: Saturday, 18 June 2005 10:55 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] C/C++ instrumentation tool
>
> I'm looking for a C/C++ code instrumentation tool that will cause my
> program to watch for
> every variable assignment and print out the variable and value whenever
> any variable is assigned
> a value. I don't see any gcc options to do that kind of code
> instrumentation, and I don't see a way
> to have gdb do that.
>
> Does anyone know of such a tool? Preferably something simple and free.
>
> Or am I going to have to whip one up with ANTLR?
>
Is this a special purpose instrumentation, or is it a one-off debugging
problem? Can you just wait for the value to change?
http://www.delorie.com/gnu/docs/gdb/gdb_30.html
How big is the scale of this instrumentation? Can you just manually
instrument with #ifdef/#enddef wrappers?
Nigel
--
Nigel Sheridan-Smith
PhD research student
Faculty of Engineering
University of Technology, Sydney
Phone: 02 9514 7946
Fax: 02 9514 2435
More information about the antlr-interest
mailing list