hugsy / gef-extras

Extra goodies for GEF to (try to) make GDB suck even less
https://hugsy.github.io/gef-extras
MIT License
149 stars 50 forks source link

Gef-Extras Breaks Gef on Arch #35

Closed hoefler02 closed 3 years ago

hoefler02 commented 3 years ago

After installing GEF extras I am no longer able to use GEF. When I try to run a file, I just get [*] No debugging session active.

[michael@thinkpad ~/Code]$ gdb ./a
GEF for linux ready, type `gef' to start, `gef config' to configure
92 commands loaded for GDB 10.1 using Python engine 3.9
[+] Configuration from '/home/michael/.gef.rc' restored
[+] 31 extra commands added from '/home/michael/.config/gef-extras/scripts'
Reading symbols from a...
(No debugging symbols found in a)
gef➤  b main
Breakpoint 1 at 0x113d
gef➤  r
[*] No debugging session active
gef➤  r
[*] No debugging session active

The binary "a" is just a basic hello world, and my .gef.rc is here (it is just the default). Removing ~/.gef.rc makes GEF work fine.

[michael@thinkpad ~]$ gdb ./Code/a
GEF for linux ready, type `gef' to start, `gef config' to configure
92 commands loaded for GDB 10.1 using Python engine 3.9
Reading symbols from ./Code/a...
(No debugging symbols found in ./Code/a)
gef➤  b main
Breakpoint 1 at 0x113d
gef➤  r
Starting program: /home/michael/Code/a 

Breakpoint 1, 0x000055555555513d in main ()
daniellimws commented 3 years ago

This is because r is replaced in https://www.github.com/hugsy/gef-extras/tree/master/scripts/windbg.py. Same for many other common gdb commands like p.

hoefler02 commented 3 years ago

Thanks so much! :+1: :smile: