This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix =thread-exited not showing up when detaching (PR 15564)
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Pedro Alves <palves at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Tue, 2 Jun 2015 15:34:30 -0400
- Subject: Re: [PATCH] Fix =thread-exited not showing up when detaching (PR 15564)
- Authentication-results: sourceware.org; auth=none
- References: <1430417119-12617-1-git-send-email-simon dot marchi at ericsson dot com> <555B3537 dot 8000207 at redhat dot com>
On 15-05-19 09:05 AM, Pedro Alves wrote:
> On 04/30/2015 07:05 PM, Simon Marchi wrote:
>> I sent a patch in 2013 for this (incorrectly named =thread-created):
>>
>> https://cygwin.com/ml/gdb-patches/2013-06/msg00129.html
>>
>> Tom Tromey was ok with the change, but suggested to add a test as well.
>> Then I forgot about this patch until today. So here it is again, with the
>> corresponding test.
>>
>> The problem is that the =thread-exited event does not appear when detaching
>> from a local process. It does appear with remote though. It's not a really
>> big deal, but I'd like it to be consistent.
>>
>> Tested with local and remote Linux on my Ubuntu 14.04.
>>
>> gdb/ChangeLog:
>>
>> PR gdb/15564
>> * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
>>
>> gdb/testsuite/ChangeLog:
>>
>> PR gdb/15564
>> * gdb.mi/mi-detach.exp: New file.
>
> OK.
>
> Thanks,
> Pedro Alves
Pushed, thanks!