From ce04e24574d7973adc5db88a634436676df11bf9 Mon Sep 17 00:00:00 2001 From: jdh8d <jdh8d@git.zephyr-software.com> Date: Tue, 22 Nov 2011 17:54:09 +0000 Subject: [PATCH] updates for dlls Former-commit-id: ef5d250a47dcad821328d884b537ef93c4ab835f --- .gitattributes | 1 + tools/ps_analyze-lib.sh | 25 +++++++++++++++++++++++++ tools/ps_analyze.sh | 5 ++++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tools/ps_analyze-lib.sh diff --git a/.gitattributes b/.gitattributes index 42b6d2989..cd31832bb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -669,6 +669,7 @@ tools/pin/itraceunique.cpp -text tools/pin/itraceunique.so -text tools/pin/pin -text tools/ps_analyze-ilronly.sh -text +tools/ps_analyze-lib.sh -text tools/ps_analyze.sh -text tools/ps_comp++.sh -text tools/ps_comp.sh -text diff --git a/tools/ps_analyze-lib.sh b/tools/ps_analyze-lib.sh new file mode 100644 index 000000000..f89325a12 --- /dev/null +++ b/tools/ps_analyze-lib.sh @@ -0,0 +1,25 @@ +#!/bin/sh + + +TVHEADLESS=1 $PEASOUP_HOME/tools/ps_analyze.sh $* \ + --step stratafy_with_pc_confine=off \ + --step create_binary_script=off \ + --step concolic=off \ + --step heaprand=off \ + --step double_free=off \ + --step pc_confine=off \ + --step isr=off \ + --step meds_static=on \ + --step pdb_register=on \ + --step pdb_create_tables=on \ + --step meds2pdb=on \ + --step fill_in_cfg=on \ + --step fill_in_indtargs=on \ + --step clone=on \ + --step fix_calls=on \ + --step p1transform=on \ + --step integertransform=on \ + --step ilr=on \ + --step generate_spri=on \ + --step spasm=on \ + --step copy_exe=off diff --git a/tools/ps_analyze.sh b/tools/ps_analyze.sh index b40a290df..e83cdbd65 100755 --- a/tools/ps_analyze.sh +++ b/tools/ps_analyze.sh @@ -78,6 +78,8 @@ check_options() if [ ! -z $1 ]; then exit -3; fi + + phases_off="$phases_off isr=off" } @@ -191,6 +193,7 @@ perform_step() echo "# ATTRIBUTE end_time=`date --iso-8601=seconds`" >> $logfile echo "# ATTRIBUTE peasoup_step_name=$step" >> $logfile echo "# ATTRIBUTE peasoup_step_number=$stepnum" >> $logfile + echo "# ATTRIBUTE peasoup_step_command=$command " >> $logfile echo "# ATTRIBUTE peasoup_step_exitcode=$command_exit" >> $logfile # move to the next step @@ -482,7 +485,7 @@ report_logs # go back to original directory cd - > /dev/null 2>&1 -cp $newdir/$name.sh $stratafied_exe +perform_step copy_exe cp $newdir/$name.sh $stratafied_exe # return the exit code of the copy as the final return value # So that a predictable return value is returned -- GitLab