-
download the most recent GDB from https://www.sourceware.org/gdb/download/
-
expand the gdb-7.12.1.tar.xz file:
tar xopf gdb-7.12.1.tar.xz -
cd gdb-7.12.1in terminal to open the gdb folder -
then follow the instructions in the README file in the gdb folder, or simply follow the following steps:
-
./configure, wait for the terminal -
makeand wait again (which can take some time) -
sudo make install
Now gdb is installed at /usr/local/bin/