peda icon indicating copy to clipboard operation
peda copied to clipboard

:8: Error in sourced command file:

Open justlooks opened this issue 5 years ago • 3 comments

can not run peda in gdb root@knife:~# echo "source ~/peda/peda.py" >> ~/.gdbinit root@knife:~# gdb -q bof /root/.gdbinit:2: Error in sourced command file: :8: Error in sourced command file: Undefined command: "from". Try "help". Reading symbols from bof...(no debugging symbols found)...done.

root@knife:~# python -V Python 2.7.16

justlooks avatar Jun 07 '19 13:06 justlooks

Yeah, getting the same problem after switching to Parrot OS KDE environment. I am also not able to figure out what's causing it. BTW did u manage to solve it @justlooks ?

mrT4ntr4 avatar Jul 26 '19 15:07 mrT4ntr4

Ohh It was just coz GDB wasn't updated on my system. maybe that helps!!

mrT4ntr4 avatar Jul 26 '19 15:07 mrT4ntr4

On my system I had gdb 8.x, but it was not compiled with python support.

Fixed it by running sudo apt install gdb (no idea why I had a bad version of gdb)

NicolaiSoeborg avatar Dec 25 '19 20:12 NicolaiSoeborg