citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 2c6a8b6b6b80adfb74138c4b0ddb3f6d8a16a7b8
parent dee240fdbbc07cd74cd3dee762ae59cb32124ed2
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 29 Jul 2016 22:45:59 -0600

lib: add new struct citrun_node members

Diffstat:
MTest/Project.pm | 4++--
Mlib/runtime.h | 2++
Mt/inst_preamble.t | 2++
3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Test/Project.pm b/Test/Project.pm @@ -62,7 +62,7 @@ sub instrumented_src { open( my $inst_fh, "<", "$self->{tmp_dir}/source_0.c" ); # Knock off the instrumentation preamble - my $line = <$inst_fh> for (1..29); + my $line = <$inst_fh> for (1..31); my $inst_src; while (my $line = <$inst_fh>) { @@ -78,7 +78,7 @@ sub inst_src_preamble { open( my $inst_fh, "<", "$self->{tmp_dir}/source_0.c" ); my $preamble; - for (1..29) { + for (1..31) { my $line = <$inst_fh>; $preamble .= $line; } diff --git a/lib/runtime.h b/lib/runtime.h @@ -6,6 +6,8 @@ struct citrun_node { const char *file_name; struct citrun_node *next; uint64_t *old_lines; + uint64_t *tmp_lines; + uint32_t *diffs; }; void citrun_node_add(struct citrun_node *); void citrun_start(); diff --git a/t/inst_preamble.t b/t/inst_preamble.t @@ -33,6 +33,8 @@ struct citrun_node { const char *file_name; struct citrun_node *next; uint64_t *old_lines; + uint64_t *tmp_lines; + uint32_t *diffs; }; void citrun_node_add(struct citrun_node *); void citrun_start();