In case you are running into this problem that launching GDB hangs with this message in Eclipse:
It happens to me with the P&E GDB server with projects created for the Kinetis SDK (see “First NXP Kinetis SDK Release: SDK V2.0 with Online On-Demand Package Builder“).
I had to use the task manager to kill the GDB server.
The problem is most likely caused by an invalid launch configuration. To solve the problem, open the launch configuration and go to the ‘Debugger’ tab. The problem is most likely caused by wrong line endings in the ‘Commands’ section:
For the above case, fix the text inside the Commands box into
set mem inaccessible-by-default off set tcp auto-retry on set tcp connect-timeout 30
with removing the line ending codes. With this, debugging should work as expected.
💡 Kinetis Design Studio V3.2.0 has this problem fixed, see NXP Kinetis Design Studio v3.2.0
Happy Debugging 🙂
- Similar issue on stackoverflow: http://stackoverflow.com/questions/5425396/eclipse-cdt-cant-use-debugger-always-stuck-on-89-process