[PATCH, remote] Handle 'k' packet errors gracefully

Pedro Alves palves@redhat.com
Mon Apr 22 21:06:00 GMT 2013


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



More information about the Gdb-patches mailing list