diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-05-03 16:50:46 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-06-05 16:30:13 +0200 |
commit | 62c2b5958d8695db1166d1af89a353482801d56f (patch) | |
tree | ddf5b9070414a553fd8e873f6a8f62f3c2d143b7 /simpletrace.py | |
parent | 975eb6a547f809608ccb08c221552f666611af25 (diff) | |
download | qemu-62c2b5958d8695db1166d1af89a353482801d56f.tar.gz |
gdbstub: avoid busy loop while waiting for gdb
While waiting for a gdb response, or while sending an acknowledgement
there is not much to do, so do not mark the socket as non-blocking to
avoid a busy loop while paused at gdb. This only affects the user-mode
emulation (qemu-arm -g 1234 ./a.out).
Note that this issue was reported before at
https://lists.nongnu.org/archive/html/qemu-devel/2013-02/msg02277.html.
While at it, close the gdb client fd on EOF or error while reading.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'simpletrace.py')
0 files changed, 0 insertions, 0 deletions