$ sudo apt-get update
$ sudo apt-get install gdb
$ wget 'http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.gz'
$ cd gdb-7.11
gdb-7.11$ ./configure
gdb-7.11$ make
This step will take a bit of time. So you can sit back and have cup of coffee for a while.$ make install
By default this will install gdb binaries in /usr/local/bin and libs in /usr/local/lib$ gdb --version
brew
brew update
. This will give you the latest installation recipesbrew install gdb
. This will install the latest GDB.taskgated
process, to be sure to pick the new certificate when code-signing:gdb
in our shell!