Cannot run program "gdb": Launching failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot run program "gdb": Launching failed

Jump to solution
20,130 Views
659306386
Contributor I

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

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

1 Solution
16,819 Views
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

View solution in original post

7 Replies
16,819 Views
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 Kudos
Reply
16,819 Views
alex_yu1
Contributor III

i also have this problem, your solution  is not working

0 Kudos
Reply
16,819 Views
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 Kudos
Reply
16,819 Views
raphael_sommer
Contributor II

Hello, I got the same issue.

Did you find a solution for that Problem?

0 Kudos
Reply
16,820 Views
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

16,819 Views
raphael_sommer
Contributor II

HI,

My Problem is gone now, thanks to you!

0 Kudos
Reply
16,819 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

what is your OS- Linux or Windows?

0 Kudos
Reply