QoL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user