aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-06-05 16:35:48 +0200
committerPeter Maydell <peter.maydell@linaro.org>2016-06-06 11:15:54 +0100
commit5819e3e072f41cbf81ad80d822a5c468a91f54e0 (patch)
treed1da050ae4b9e78f1b0fbfd06f10b0934d7d9a39 /module-common.c
parentde5dca1b792ada25c29a95c8f84e01f4300aef9c (diff)
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> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions