peda
peda copied to clipboard
:8: Error in sourced command file:
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
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 ?
Ohh It was just coz GDB wasn't updated on my system. maybe that helps!!
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)