Community
Participate
Working Groups
Currently, if the user types 'run' in the gdb console to restart the process, things fail in eclipse. The main reason is that gdb is unable to restart the process because it tries to use the same TTY as for the original process, but that TTY is now closed. There are some cleanup also needed in the handling of exited processes in eclipse to properly support this. I was thinking of multiple approaches we can take to solve the tty issue: 1- once the process is started, immediately unset the tty in gdb. A restart should then work. There are two issues there though: first, there does not seem to be a way to unset the tty in GDB! This can easily be fixed for gdb, but wouldn't help with old versions. Second, the output will not go to an eclipse console. 2- we could extend the CDT PTY class to remain open even after the process it was associated too disappears. We could then re-use the PTY each time the process is restarted. 3- once the process is started, immediately allocate a new PTY and set it in GDB. That way, if the user types 'run' a new PTY would be ready. There are surely other approaches, but I think #2 or #3 are pretty good and do-able. I think #3 is better because we don't fiddle around with the PTY itself.
New Gerrit change created: https://git.eclipse.org/r/76462
New Gerrit change created: https://git.eclipse.org/r/79284
(In reply to Eclipse Genie from comment #2) > New Gerrit change created: https://git.eclipse.org/r/79284 Pushed a new review by mistake, instead of reusing the existing one. I've abandoned this new one.
Gerrit change https://git.eclipse.org/r/76462 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=39c781f81a1687260024c03dc30b8c92e19c327d