Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340114

Summary: Need better error message when gdb fails to connect to gdbserver
Product: [Tools] CDT Reporter: Ang Chin Huat <chinhuat>
Component: cdt-debug-dsf-gdbAssignee: Project Inbox <cdt-debug-dsf-gdb-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ang Chin Huat CLA 2011-03-16 02:49:46 EDT
Build Identifier: M20100909-0800

Try to debug any C/C++ application via gdbserver, intentionally let it fail by not starting gdbserver, observed the error message:

Error in final launch sequence
Failed to execute MI command:
-target-select extended-remote localhost:10000
Error message from debugger back end:
localhost:10000: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
localhost:10000: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 


The error message should really be something more human-readible, e.g. unable to connect to remote target.

Reproducible: Always

Steps to Reproduce:
1. Create hello world project
2. Create new attach to application launch configuration, enable DSF.
3. In connections tab, use default settings, and do not start gdbserver.