eclipse不能debug的解决方法,提示Failed to execute MI command: maintenance set python print-stack off

本文介绍了当使用Eclipse CDT遇到与新版GDB不兼容的情况时的两种解决方案:一是更换为旧版GDB以确保兼容性;二是选择不同的调试程序集成方式,如使用StandardCreateProcessLauncher。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

提示:

Error in final launch sequence
Failed to execute MI command:
maintenance set python print-stack off
Error message from debugger back end:
Undefined maintenance set python command: "print-stack off". Try"help maintenance set python".
Undefined maintenance set python command: "print-stack off". Try"help maintenance set python".

因为gdb有升级,新版的gdb内删掉了一下命令,而EclipseCDT又刚好使用了这些命令,所以导致的不兼容,有一些python命令在cdt里面没有定义。




有两种解决方法:

1)重新替换一个低版本的gdb,亲测7.2兼容性高一些,(现在都7.11了)。

  找资源可以去我的博客资源里面有个7开头的gdb,下那个就行。



2)换debug程序用,具体如下:

 

How can I choose another debuggerintegration for CDT?

CDT provides different options for debugging. The default one iscalled DSF-GDB and is automatically selected for you. It uses GDBand provides support for the latest features such as ReverseDebugging, Non-stop multi-threaded debugging, Multi-processdebugging, Tracepoints, and more. If for some reason, you wish touse the older GDB integration or you prefer to use EDC you can dothe following can go to your launch window, and at the bottom ofany of the tabs, you will see a hyperlink "Select other...". Thisis how you can modify which debugger you will use.

Image:SelectOtherDebugger.png

Image:SelectOtherDebuggerDialog.png

选第二个 “stand create process launcher”

 

"Standard Create Process Launcher" is the old GDBintegration.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值