Created
March 10, 2019 20:37
-
-
Save sneppy/d38cf6e714444224c0d2c7a5ec7b31a8 to your computer and use it in GitHub Desktop.
Simple shell program to disasm a function of a C/C++ program (requires gdb)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Call GDB with batch | |
gdb -batch -ex "file $1" -ex "disas $2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment