+--dwarf4
+cgclassify hammock
use strict;
use warnings;
use strict;
use warnings;
# <last 2 lines repearing>
my $gdbserver;
my $valgrind;
# <last 2 lines repearing>
my $gdbserver;
my $valgrind;
+my $gdbindex;
+my $dwarf4;
die if !GetOptions(
"i|userid=s"=>\$userid,
"force"=>\$force,
die if !GetOptions(
"i|userid=s"=>\$userid,
"force"=>\$force,
"strip"=>\$strip,
"gdbserver"=>\$gdbserver,
"valgrind"=>\$valgrind,
"strip"=>\$strip,
"gdbserver"=>\$gdbserver,
"valgrind"=>\$valgrind,
+ "gdbindex"=>\$gdbindex,
+ "dwarf4"=>\$dwarf4,
);
$component and ($component=~m{^(?:(?:fedora|rhel)(?:gdb|binutils|glibc)|gdbcvs|binutilscvs|archer-.*|/home/.*)$} or die "-c|--component required to be: fedoragdb|rhelgdb|fedorabinutils|rhelbinutils|fedoraglibc|rhelglibc|gdbcvs|binutilscvs|archer-*|/home/*");
$component and $component=~m{^/home/} and (-f "$component/gdb/gdbtypes.c" or die "$component/gdb/gdbtypes.c not found");
);
$component and ($component=~m{^(?:(?:fedora|rhel)(?:gdb|binutils|glibc)|gdbcvs|binutilscvs|archer-.*|/home/.*)$} or die "-c|--component required to be: fedoragdb|rhelgdb|fedorabinutils|rhelbinutils|fedoraglibc|rhelglibc|gdbcvs|binutilscvs|archer-*|/home/*");
$component and $component=~m{^/home/} and (-f "$component/gdb/gdbtypes.c" or die "$component/gdb/gdbtypes.c not found");
$gdbserver and $component ne "gdbcvs" and die "--gdbserver is available only for gdbcvs";
$valgrind and $component ne "gdbcvs" and die "--valgrind is available only for gdbcvs";
$gdbserver and $valgrind and die "--gdbserver and --valgrind are mutually exclusive";
$gdbserver and $component ne "gdbcvs" and die "--gdbserver is available only for gdbcvs";
$valgrind and $component ne "gdbcvs" and die "--valgrind is available only for gdbcvs";
$gdbserver and $valgrind and die "--gdbserver and --valgrind are mutually exclusive";
+($gdbserver || $valgrind) and $gdbindex and die "--gdbserver|--valgrind and --gdbindex are mutually exclusive";
+($gdbserver || $valgrind || $gdbindex) and $dwarf4 and die "--gdbserver|--valgrind|--gdbindex and --dwarf4 are mutually exclusive";
my %target;
do { error "Duplicate target: $_\n" if $target{$_}++; } for @target;
@arch="x86_64" if @target&&!@arch;
my %target;
do { error "Duplicate target: $_\n" if $target{$_}++; } for @target;
@arch="x86_64" if @target&&!@arch;
+# /etc/cgconfig.conf
+spawn "echo cgclassify -g '*':hammock $$ || :";
+
spawn "renice +19 -p $$";
spawn "ionice -c3 -p $$";
newdir $dir;
spawn "renice +19 -p $$";
spawn "ionice -c3 -p $$";
newdir $dir;
"file"=>join("\n",@file),
"configure"=>$configure,
"gdbcvspie"=>$gdbcvspie,
"file"=>join("\n",@file),
"configure"=>$configure,
"gdbcvspie"=>$gdbcvspie,
+ "gdbserver"=>$gdbserver,
+ "valgrind"=>$valgrind,
+ "gdbindex"=>$gdbindex,
+ "dwarf4"=>$dwarf4,
);
while (my($name,$val)=each(%dump)) {
next if !$val;
);
while (my($name,$val)=each(%dump)) {
next if !$val;
."orphanripper make -k ".join(" ",@check)
.(!$gdbserver?"":' RUNTESTFLAGS=--target_board=native-gdbserver')
.(!$valgrind?"":' RUNTESTFLAGS=--target_board=valgrind')
."orphanripper make -k ".join(" ",@check)
.(!$gdbserver?"":' RUNTESTFLAGS=--target_board=native-gdbserver')
.(!$valgrind?"":' RUNTESTFLAGS=--target_board=valgrind')
+ .(!$gdbindex?"":' RUNTESTFLAGS="CC_FOR_TARGET=/bin/sh\ $PWD/cc-with-index.sh\ gcc CXX_FOR_TARGET=/bin/sh\ $PWD/cc-with-index.sh\ g++"')
+ .(!$dwarf4?"":' RUNTESTFLAGS="CC_FOR_TARGET=gcc\ -gdwarf-4\ -g0 CXX_FOR_TARGET=g++\ -gdwarf-4\ -g0"')
." FORCE_PARALLEL=1 || :; ".q{for t in sum log;do for file in testsuite*/gdb.$t;do suffix="${file#testsuite.unix.}"; suffix="${suffix%/gdb.$t}"; ln $file}." $out/gdb".q{$suffix.$t || :; done; done;};
}
# gdbunpack does:
." FORCE_PARALLEL=1 || :; ".q{for t in sum log;do for file in testsuite*/gdb.$t;do suffix="${file#testsuite.unix.}"; suffix="${suffix%/gdb.$t}"; ln $file}." $out/gdb".q{$suffix.$t || :; done; done;};
}
# gdbunpack does:
spawn "mv $out $out.x; gdbunpack $log; mv $out.x/* $out/; rmdir $out.x";
}
spawn "mv $out $out.x; gdbunpack $log; mv $out.x/* $out/; rmdir $out.x";
}
+ if ($valgrind) {
+ for my $from (glob "$out/*.log") {
+ (my $to=$from).="filt";
+ spawn q{sed -n 's/^==[0-9]*== \([A-Z]\)/\1/p' <}.$from.q{|grep -v '^\(Conditional jump \|Invalid read \|Use of uninitialised value \|Syscall param .* uninitialised byte\)' >}.$to;
+ }
+ }
+
my $resultout="$resultdir/$id/$distrodirbase";
newdir $resultout;
$resultout.="/out";
my $resultout="$resultdir/$id/$distrodirbase";
newdir $resultout;
$resultout.="/out";