delve: Debugged process can't read from stdin
A traced program will read its stdin from os.DevNull instead of os.Stdin, since in proctl.Launch() it is only stderr and stdout. I can’t figure out the reason for this, and simply adding proc.Stdin = os.Stdin
in the Launch() function will make a simple test program behave as expected.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (14 by maintainers)
Commits related to this issue
- proc/native,proc/gdbserial: let target access terminal Change the linux verison of proc/native and proc/gdbserial (with debugserver) so that they let the target process use the terminal when delve is... — committed to aarzilli/delve by aarzilli 6 years ago
- proc/native,proc/gdbserial: let target access terminal Change the linux verison of proc/native and proc/gdbserial (with debugserver) so that they let the target process use the terminal when delve is... — committed to aarzilli/delve by aarzilli 6 years ago
- [#176065448] Add webhook db to forestadmin and associate relationships (#65) * [#176065448] Add webhook db to forestadmin and associate relationships with account * Updated infra values — committed to nclifton/delve by paran01d 4 years ago
- proc/native,proc/gdbserial: let target access terminal Change the linux verison of proc/native and proc/gdbserial (with debugserver) so that they let the target process use the terminal when delve is... — committed to cgxxv/delve by aarzilli 6 years ago
Good point.
That’s a lot easier to handle. I’ll send out the patch later on (as I said, this allows me to learn more of delve’s internals and be more helpful in the future). Thank you!