Debug configuration set to point at GDB (build with python included).

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debug configuration set to point at GDB (build with python included).

跳至解决方案
1,685 次查看
thomascurry
Contributor II

Continues to use LPCxpresso version of GDB. Set in "Debug Configuration" "Debugger" "Main" to point to another version of GDB.  Looks like it is ignoring the selection and always using the LPCxpresso version of GDB.

标签 (2)
标记 (2)
1 解答
1,478 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

Yes, there does seem to be an issue here. We'll look at fixing this in a future product release, but in the meantime, you can achieve your requirement in one of the following two ways...

In the case that you have a project which does not yet have a launch configuration file (or where you are happy to delete the existing launch configuration file), then the simplest way to solve this is to go to:

Preferences - LPCXpresso - Debug Options (Miscellaneous)

and change the Debugger Executable from "arm-none-eabi-gdb" to "arm-none-eabi-gdb-py". This setting will then get picked up when you first debug your project (when the IDE will automatically create a new launch configuration file).

Or to update an existing launch configuration, double click on the .launch file inside your project (in the Project Explorer view) to open it in the editor. Then change the line:

<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb"/>

to

<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb-py"/>

Regards,

LPCXpresso Support

在原帖中查看解决方案

2 回复数
1,478 次查看
thomascurry
Contributor II

Good solution.  Works better than my way to allow all future debug configurations to use selected GDB application. 

Thanks

0 项奖励
回复
1,479 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

Yes, there does seem to be an issue here. We'll look at fixing this in a future product release, but in the meantime, you can achieve your requirement in one of the following two ways...

In the case that you have a project which does not yet have a launch configuration file (or where you are happy to delete the existing launch configuration file), then the simplest way to solve this is to go to:

Preferences - LPCXpresso - Debug Options (Miscellaneous)

and change the Debugger Executable from "arm-none-eabi-gdb" to "arm-none-eabi-gdb-py". This setting will then get picked up when you first debug your project (when the IDE will automatically create a new launch configuration file).

Or to update an existing launch configuration, double click on the .launch file inside your project (in the Project Explorer view) to open it in the editor. Then change the line:

<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb"/>

to

<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb-py"/>

Regards,

LPCXpresso Support