This is the mail archive of the gdb@sourceware.org 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]

The block issue, gdb-mi


Hi, all
I want to using the gdb-mi to build a simple front-end for my
application. I used the
pty to interact with gdb like this:
fork a new process to login_tty and execl, and read/write in parent
process, but when I
read from master, the read is blocked. Is there anyone else encounted
this problem.
details is like this:
1. int fd = _start_debug("executable");
2. trans_command(fd, "help", 5, &response, &response_size);
3. _stop_debug(fd);
in step 2, there is a while loop, and the process will hang on
read(fd), but actually, the read
is finished.
could you please give me some hints on this?
--
èèï
éäæ


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