| Summary: | [remote] No indication that gdbserver has died if we are not attached to a process | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> |
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> |
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, pawel.1.piech |
| Version: | 8.2 | ||
| Target Milestone: | 8.3.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Marc Khouzam
I suggest that we simply terminate the debug session if we loose the connection to the target. Since there is no way to re-connect to a target in a running session, the user will need to start a new session anyway. Terminating the current session will make it clear that debugging is no longer working. I'll post a patch. I posted a patch to gerrit: https://git.eclipse.org/r/20286 The solution looks for "Remote connection closed" or "Ending remote debugging" in an out-of-band message, or as an error result to a command. When such strings are seen we know we lost the remote connection and we terminate the session. I've tested all-stop and non-stop for GDB >= 7.0. A different error message is given for GDB 6.8 which is not covered by this solution. However, this patch does not make this worse for 6.8, so I think it is fine. I don't want to spend time on very old GDB versions. Committed to master from Gerrit. |