[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 for-2.12] gdbstub: send a termination packet
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2 for-2.12] gdbstub: send a termination packet instead of crashing gdb |
Date: |
Tue, 27 Mar 2018 22:03:58 +0100 |
On 27 March 2018 at 10:31, KONRAD Frederic <address@hidden> wrote:
> Peter, can this be cherry-picked in 2.12-rc1?
>
> Thanks,
> Fred
>
>
> On 03/20/2018 10:39 AM, KONRAD Frederic wrote:
>>
>> Since the commit:
>> commit 4486e89c219c0d1b9bd8dfa0b1dd5b0d51ff2268
>> Author: Stefan Hajnoczi <address@hidden>
>> Date: Wed Mar 7 14:42:05 2018 +0000
>>
>> vl: introduce vm_shutdown()
>>
>> GDB crashes when qemu exits (at least on sparc-softmmu):
>> Remote communication error. Target disconnected.: Connection reset by
>> peer.
>> Quitting: putpkt: write failed: Broken pipe.
>>
>> So send a packet to exit GDB before we exit QEMU:
>> [Inferior 1 (Thread 0) exited normally]
>>
>> Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
>> Reviewed-by: Stefan Hajnoczi <address@hidden>
>> Signed-off-by: KONRAD Frederic <address@hidden>
>> ---
Applied to master, thanks.
-- PMM