Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When debugging in Emacs how can I signal EOF in the I/O window?

Tags:

linux

emacs

When running program which reads from stdio from in bash, I can signal EOF by typing Ctrl-D. When debugging such a program in gdb mode in Emacs, Ctl-D is not recognized in the input/output window. I am running Ubuntu 16.04.

like image 912
Shane Avatar asked Dec 06 '25 00:12

Shane


1 Answers

If you're running it from shell, then either try to press C-c C-d that will call comint-send-eof function, or if it's really inside program itself, you can try to use C-q C-d to send C-d as raw key command.

like image 90
Alex Ott Avatar answered Dec 07 '25 17:12

Alex Ott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!