high-priority-bug: extension should use interpreter-exec instead of stdin/stream write
After multiple cases of a "crashed" debugging session I gave bug hunting a try. And I'm quite sure that the sendRaw
function is the reason for most bugs.
The current implementation of for example cprint
calls is to just send it to the GDB console.
This is problematic because:
- GDB will only execute the command if it waits for console input
- if the extension then waits for an answer the debugger halts and you need to restart the debugging session
- COBOL
ACCEPT
gets that data if the GDB console only waits on stdin input - it needs a distinguishing between SSH or direct GDB
There's an MI command to do stuff like this: The -interpreter-exec
Command.
To allow the vsix to be useable: please use that and try to not use any stdin/stream functions.