Skip to content

Commit

Permalink
testsuite/basic7-instmon: fixed address extraction
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Chipounov <[email protected]>
  • Loading branch information
vitalych committed Dec 7, 2024
1 parent 2d1efb1 commit ee0b886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/basic7-instmon/fix-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "Patching s2e-config.lua..."

PROJECT_NAME="$(basename $PROJECT_DIR)"

SCANF_CS_ADDR=$(objdump -S $TARGET | grep scanf | grep call | cut -d ':' -f 1 | xargs)
SCANF_CS_ADDR=$(objdump -S $TARGET | grep scanf | grep call | head -n 1 | cut -d ':' -f 1 | xargs)
if [ "x$SCANF_CS_ADDR" = "x" ]; then
echo "Could not get call site of scanf instruction"
exit 1
Expand Down

0 comments on commit ee0b886

Please sign in to comment.