Nikhil opined:
Hi,
I have a set of C source files and I need a tool which can add probes
and then dynamically trace the execution and print the results (The C
source code does not have any printf statements).
The purpose of the tool is to add test cases for unit testing and
then see the statement/branch coverage for them.
I can't think of such a tool right now, but I do wonder how would it
know where to put "print" statements, and what to print out, without
heavy input from you? While specifying that, you might as well add
your own debug "print" statements, and guard them with `#ifdef`s so
they're only compiled in for debug/test purposes. As a bonus, you
won't be relying on a tool still being available (and supporting
whatever next platform you port to) sometime in the future.
--
Fatal Error: Found [MS-Windows] System -> Repartitioning Disk for
Linux...
(By
cb*****@io.org, Christopher Browne)
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>