Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近我无法使用 gdb 调试任何二进制文件并且总是得到相同的错误 - “exec - 语法错误”
例如,当我尝试 gdb ls (在 gdb 启动并按 'r' 后)时,出现以下错误:
启动程序:/bin/ls 文件“<字符串>”,第 1 行 执行 /bin/ls SyntaxError : 无效的语法
启动程序:/bin/ls
文件“<字符串>”,第 1 行
执行 /bin/ls
SyntaxError : 无效的语法
到目前为止尝试过的事情:1)清除并重新安装 gdb 2)大规模谷歌搜索
提前感谢您的帮助
我猜这与gdb的python支持有关......你能检查一下gdb正在加载什么吗
(gdb) info auto-load python-scripts