Cannot run program "gdb": Launching failed

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

Cannot run program "gdb": Launching failed

跳至解决方案
17,067 次查看
659306386
Contributor I

S32 Design Studio for ARM Version 2018.R1 program fail.

Error with command: gdb --version
Cannot run program "gdb": Launching failed

标记 (3)
1 解答
13,756 次查看
stanish
NXP Employee
NXP Employee

Hi,

This issue may occur when the first debug is launched by clicking on the debug button and there was no debug configuration launched previously - Eclipse creates a new generic GDB configuration which is missing some important paths/settings required to run GDB client.

I'd suggest you to go the Debug Configuration dialog select correct debug configuration and press debug:

pastedImage_1.png

Hope it helps.

Stan

在原帖中查看解决方案

7 回复数
13,756 次查看
BlackNight
NXP Employee
NXP Employee

That error message typically indicates that the gdb executable is not found, see Troubleshooting Tips: Failed Debugging with GDB | MCU on Eclipse 

I hope this helps,

Erich

0 项奖励
13,756 次查看
alex_yu1
Contributor III

i also have this problem, your solution  is not working

0 项奖励
13,756 次查看
jiri_kral
NXP Employee
NXP Employee

Hi,

I faced similar issue couple weeks ago - in my case the issue was caused by different gcc (4.9 used for build) and gdb (6.3) version used for build/debug. You can use verbose build mode in project properties to check out in build console  which particular version is really used: 

pastedImage_1.png

Jiri 

0 项奖励
13,756 次查看
raphael_sommer
Contributor II

Hello, I got the same issue.

Did you find a solution for that Problem?

0 项奖励
13,757 次查看
stanish
NXP Employee
NXP Employee

Hi,

This issue may occur when the first debug is launched by clicking on the debug button and there was no debug configuration launched previously - Eclipse creates a new generic GDB configuration which is missing some important paths/settings required to run GDB client.

I'd suggest you to go the Debug Configuration dialog select correct debug configuration and press debug:

pastedImage_1.png

Hope it helps.

Stan

13,756 次查看
raphael_sommer
Contributor II

HI,

My Problem is gone now, thanks to you!

0 项奖励
13,756 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

what is your OS- Linux or Windows?

0 项奖励