This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
The block issue, gdb-mi
- From: "juntao.qiu" <juntao dot qiu at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 18 Jul 2011 13:57:45 +0800
- Subject: 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?
--
èèï
éäæ