x86_64 added

This commit is contained in:
2019-03-10 12:17:59 +01:00
parent 59e78f996f
commit f627ab2ec6
4 changed files with 175 additions and 0 deletions

22
x86_64/debug.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "Provide the program to debug as first argument"
exit 1
fi
if [ ! -x "$1" ]; then
echo "$1 is not an executable file"
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