This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]