问题描述:

recently Im unable to debug any binary using gdb and get always the same error - "exec - syntax error"

for example, when I try gdb ls (after gdb starts and I press 'r'), the following error appear:

Starting Program : /bin/ls

File "< string>" , line 1

exec /bin/ls

SyntaxError : Invalid syntax

Things tried so far:

1) purge and reinstall gdb

2) massive google search

thank you in advance for the help

网友答案:

I'd guess this has something to do with the python support of gdb.... can you check what gdb is loading by

 (gdb) info auto-load python-scripts
相关阅读:
Top