You are not logged in.

#1 2024-04-08 13:44:04

notadaughter
Member
Registered: 2024-04-08
Posts: 2

[SOLVED] gef not working

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

#2 2024-04-08 14:22:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,561
Website

Re: [SOLVED] gef not working

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

#3 2024-04-08 16:23:45

notadaughter
Member
Registered: 2024-04-08
Posts: 2

Re: [SOLVED] gef not working

Thank you! Had gef previously working OOTB so I had no idea I should initialize it

Offline

#4 2024-04-08 19:16:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,561
Website

Re: [SOLVED] gef not working

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

#5 2024-04-08 19:57:44

xerxes_
Member
Registered: 2018-04-29
Posts: 679

Re: [SOLVED] gef not working

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

Board footer

Powered by FluxBB