Skip to content
Snippets Groups Projects
Commit 1233a6b9 authored by an7s's avatar an7s
Browse files

split fragments on ;

split fragments on ?#


Former-commit-id: 7115bf164c1dd3202b590891a11831d595a32910
parent 0e431f66
No related branches found
No related tags found
No related merge requests found
......@@ -81,11 +81,20 @@ else
grep -i "found string:" $stringLogFile | sed "s/Found string: \"//" | sed "s/\" at.*$//" > $tmpFile2
fi
cat $defaultSigs >> $tmpFile2 # add signatures from sqlite itself
# convert parameterized arguments of the form ?1 or (?1) to %s so that we split the fragments
# split fragments on ;
grep "(?[0-9][0-9]*)" $tmpFile2 | sed "s/(?[0-9][0-9]*)/\n/g" >> $tmpFile
grep "?[0-9][0-9]*" $tmpFile2 | sed "s/?[0-9][0-9]*/\n/g" >> $tmpFile
grep ";" $tmpFile2 | sed "s/;/\n/g" >> $tmpFile
cat $tmpFile >> $tmpFile2
rm $tmpFile
cat $defaultSigs >> $tmpFile2 # add signatures from sqlite itself
sort $tmpFile2 | uniq > $tmpFile
nm -a $inputFile | grep -v " U " | grep -v " w " | cut -d' ' -f3 | sort | uniq > $tmpSymbols # get symbol names
#
# break up strings with potential format specifiers
# and add them to the list of patterns
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment