This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Remove unnecessary call to save_current_inferior
- From: Pedro Alves <palves at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 03 Sep 2013 21:32:48 +0100
- Subject: Re: [RFA] Remove unnecessary call to save_current_inferior
- Authentication-results: sourceware.org; auth=none
- References: <yjt27gf4xt75 dot fsf at ruffy dot mtv dot corp dot google dot com> <5224E183 dot 8080500 at redhat dot com> <CADPb22RrsnPNHQqVO-7wMEy15gdEEQGtGMz3jH9RAP6W1vrx4Q at mail dot gmail dot com>
On 09/03/2013 09:17 PM, Doug Evans wrote:
> On Mon, Sep 2, 2013 at 12:05 PM, Pedro Alves <palves@redhat.com> wrote:
>> On 08/29/2013 07:11 PM, Doug Evans wrote:
>>> Hi.
>>> AFAICT the call to save_current_inferior here is unnecessary.
>>
>> What if there are no threads in the current inferior?
>
> I considered that, at least I tried to ...
> Does make_cleanup_restore_current_thread/do_restore_current_thread_cleanup
> not handle it?
Sorry, I remembered incorrectly. Indeed it does.
--
Pedro Alves