This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, remote] Handle 'k' packet errors gracefully
- From: Pedro Alves <palves at redhat dot com>
- To: lgustavo at codesourcery dot com
- Cc: "'gdb-patches at sourceware dot org'" <gdb-patches at sourceware dot org>
- Date: Mon, 22 Apr 2013 15:54:21 +0100
- Subject: Re: [PATCH, remote] Handle 'k' packet errors gracefully
- References: <517549FC dot 5070606 at codesourcery dot com>
Hi Luis,
On 04/22/2013 03:32 PM, Luis Machado wrote:
> This is not a real problem with gdbserver, but other types of remote targets (other stubs, QEMU etc) may cut the connection abruptly since they are not required to reply to a 'k' (Kill) packet sent from GDB.
>
> The following patch addresses any issues arising from such scenario, which leads to a GDB internal error due to an attempt to pop the target more than once. With the patch, this failure is handled gracefully.
Hard to say without at least seeing the backtrace, but this may no longer
be applicable due to changes in this area since (some quite recent).
> As the ChangeLog suggests, i'm sending this on behalf of its original authors.
This needs to be updated to take the new TARGET_CLOSE_ERROR
exception into account.
Thanks,
--
Pedro Alves