Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:8: Error in sourced command file: #138

Open
justlooks opened this issue Jun 7, 2019 · 3 comments
Open

:8: Error in sourced command file: #138

justlooks opened this issue Jun 7, 2019 · 3 comments

Comments

@justlooks
Copy link

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

@mrT4ntr4
Copy link

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
Copy link

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

@NicolaiSoeborg
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants