HowTo :: Install GEF (GDB Plug-in)

Cloning

Goto GEF Project and clone the repository to /opt

cd /opt
git clone https://github.com/hugsy/gef.git

Checking

To check if the GDB was compiled with Python support run the following command in terminal:

gdb -nx -ex 'pi print(sys.version)' -ex quit

The output should be similar to this:

2.7.3 (default, Mar 18 2014, 06:31:17)
[GCC 4.6.3]

Installing

To install the gef plug-in, just run the shell scripts as following:

/opt/gef/scripts/gef.sh
/opt/gef/scripts/gef-extras.sh

Configuring

  • Use the pyenv to set the correct python version
  • Enter the GDB and type: gef missing
  • Use pip to install the GEF dependences

Updating

To keep the GEF plug-in update, just do:

python ~/.gdbinit-gef.py --update