qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Close Gdb stub connection in gdb_exit


From: Fabien Chouteau
Subject: Re: [Qemu-devel] [PATCH] Close Gdb stub connection in gdb_exit
Date: Thu, 13 Jan 2011 10:24:50 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

On 01/04/2011 11:27 AM, Fabien Chouteau wrote:
On Windows, this is required to flush the remaining data in the IO stream,
otherwise Gdb do not receive the last packet.

Signed-off-by: Fabien Chouteau<address@hidden>
---
  gdbstub.c |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gdbstub.c b/gdbstub.c
index 0aa081b..dac3ce6 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -2391,6 +2391,10 @@ void gdb_exit(CPUState *env, int code)

    snprintf(buf, sizeof(buf), "W%02x", (uint8_t)code);
    put_packet(s, buf);
+
+  if (s->chr) {
+      qemu_chr_close(s->chr);
+  }
  }

  #ifdef CONFIG_USER_ONLY

Any comment on this patch?

--
Fabien Chouteau




reply via email to

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