citrun

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

commit 268d9711542f33504ac3127965e1099cf70b260f
parent 1b4f3f9c516f5e10cc706e75d1c65bc65f889cbb
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 22 Jan 2017 10:45:12 -0700

lib: exiting field not needed because atexit() is unhooked

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

diff --git a/lib.h b/lib.h @@ -9,7 +9,6 @@ struct citrun_header { unsigned int pids[3]; unsigned int units; unsigned int loc; - unsigned int exited; char progname[1024]; char cwd[1024]; }; diff --git a/t/inst_preamble.t b/t/inst_preamble.t @@ -55,7 +55,6 @@ struct citrun_header { unsigned int pids[3]; unsigned int units; unsigned int loc; - unsigned int exited; char progname[1024]; char cwd[1024]; }; diff --git a/t/lib_header.t b/t/lib_header.t @@ -6,7 +6,7 @@ use warnings; use t::mem; use t::utils; -plan tests => 19; +plan tests => 18; my $dir = setup_projdir(); @@ -24,7 +24,6 @@ is( $shm->{major}, 0, 'is major 0' ); is( $shm->{minor}, 0, 'is minor 0' ); is( $shm->{units}, 3, 'is 3 translation units' ); is( $shm->{loc}, 42, 'is 42 lines of code' ); -is( $shm->{done}, 1, 'is done signalled' ); my ($pid, $ppid, $pgrp) = @{ $shm->{pids} }; cmp_ok( $pid, '<', 100 * 1000, 'is pid < max pid' ); diff --git a/t/mem.pm b/t/mem.pm @@ -26,10 +26,9 @@ sub new { $self->{pids}[0], $self->{pids}[1], $self->{pids}[2], $self->{units}, $self->{loc}, - $self->{done}, $self->{progname}, $self->{cwd} - ) = unpack("Z4I8Z1024Z1024", $self->{mem}); + ) = unpack("Z4I7Z1024Z1024", $self->{mem}); my %trans_units; my $node_start = get_aligned_size($header_size);