This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Blocking getchar() call
- From: Russell <rjshaw at iprimus dot com dot au>
- To: gdb at sources dot redhat dot com
- Date: Sat, 16 Nov 2002 02:42:19 +1100
- Subject: Blocking getchar() call
Hi all,
In a program, i have: ch=getchar()
When the program runs, it stops at this point and waits for
a character to be entered. However, when gdb is run (in ddd),
it goes straight over getchar() like it's set to non-blocking
mode. How can i get gdb to stop at getchar() for user input?