Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Created July 30, 2017 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loretoparisi/c856da571c42da9d7a253cced0ff628a to your computer and use it in GitHub Desktop.
Save loretoparisi/c856da571c42da9d7a253cced0ff628a to your computer and use it in GitHub Desktop.
Install GDB on macOS Sierra
curl http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.gz -o gdb-8.0.tar.gz
tar xopf gdb-8.0.tar.gz
cd gdb-8.0
./configure
make
sudo make install
@loretoparisi
Copy link
Author

loretoparisi commented Jul 30, 2017

Self sign a certificate named gdb-cert - see here

$ sudo killall taskgated
$ codesign -fs gdb-cert "$(which gdb)"

The start gdb

file $EXEC
run $COMMAND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment