qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 5819e3: gdbstub: avoid busy loop while waitin


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 5819e3: gdbstub: avoid busy loop while waiting for gdb
Date: Mon, 06 Jun 2016 04:30:03 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 5819e3e072f41cbf81ad80d822a5c468a91f54e0
      
https://github.com/qemu/qemu/commit/5819e3e072f41cbf81ad80d822a5c468a91f54e0
  Author: Peter Wu <address@hidden>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M gdbstub.c

  Log Message:
  -----------
  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 <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]