You are not logged in.
Pages: 1
Hi everyone,
I recently installed gef. However, when I type in 'gdb' inside shell I enter gdb but not gef. Also
which gef
returns
which: no gef in <...>
Tried reinstalling gef but it didn't help.
Gef package is flagged as out-of-date, maybe that's the problem? Also there is a fresh rebuild with python 3.12 for gef on gitlab. I'm wondering if I should install python 3.12 and rebuild the package myself?
Last edited by notadaughter (2024-04-08 16:24:11)
Offline
There is no standalone "gef" binary to run. It's a plugin for gdb. According to the documentation with the gef package, you should have a ~/.gdbinit file with "source /usr/share/gef/gef.py" in order to use it.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thank you! Had gef previously working OOTB so I had no idea I should initialize it
Offline
This was the first I heard of gef, so I don't know it's history. But it's certainly possible that there could have formerly been a wrapper script: and you could make your own wrapper script, that just starts gdb and passes the relevant flags to load the gef python module.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
If you have gef installed from official arch repo then create file .gdbinit in your home directory with content:
source /usr/share/gef/gef.py
Offline
Pages: 1