This commit is contained in:
2019-03-11 19:00:28 +01:00
parent af09b2566f
commit 12d5388c54
3 changed files with 6 additions and 12 deletions

View File

@@ -10,13 +10,5 @@ if [ ! -x "$1" ]; then
exit 1
fi
echo "I will launch gdbtui soon. Use \"break *<entry-address>\" to debug the program."
echo "Use \"layout asm\" to use a more assembly friendly layout"
echo "Use \"si\" to single step each instruction"
echo ""
echo "$(readelf -h $1 | egrep "Entry point")"
read -p "Copy the above address and press any key to continue..."
gdbtui -q $1
breakPoint="$(readelf -h $1 | egrep -i "entry" | egrep -o "0x[a-f0-9]+")"
gdbtui -q -ex "layout asm" -ex "break *$breakPoint" $1