| Summary: | [remote] Remote non-attach should not have a console for the inferior | ||||||
|---|---|---|---|---|---|---|---|
| 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.0 | ||||||
| Target Milestone: | 8.1.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marc Khouzam
Another problem with having the console, is that it is connect to GDB's I/O. That means that if the user types to that console, it will send the command to GDB, which is surprising. For example, pressing 'quit' in the inferior console will kill GDB. The reason this happens, is that for a remote session there is no PTY available, so the code uses GDB's IO. This makes sense for a local session, but not for a remote session, whose IO should not be handled by eclipse at all, thus, this bug. Created attachment 210439 [details]
Fix to not add an inferior to the launch for the remote case
This patch checks if we are dealing with a remote session before creating an inferior process.
I will commit to master.
Fixed *** cdt git genie on behalf of Marc Khouzam ***
Bug 370376: [remote] Remote non-attach should not have a console for the inferior
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ce342ee755ee0eeae46cf8f3b50e24bb36213043
*** cdt git genie on behalf of Marc Khouzam ***
Bug 370376: [remote] Remote non-attach should not have a console for the inferior
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ce342ee755ee0eeae46cf8f3b50e24bb36213043
*** cdt git genie on behalf of Marc Khouzam ***
Bug 370376: [remote] Remote non-attach should not have a console for the inferior
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ce342ee755ee0eeae46cf8f3b50e24bb36213043
*** cdt git genie on behalf of Marc Khouzam ***
Bug 370376: [remote] Remote non-attach should not have a console for the inferior
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ce342ee755ee0eeae46cf8f3b50e24bb36213043
|