当前位置: 动力学知识库 > 问答 > 编程问答 >

ubuntu - GDB string file syntax error

问题描述:

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
分享给朋友:
您可能感兴趣的文章:
随机阅读: