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: Doug Evans <dje at google dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 3 Sep 2013 13:17:53 -0700
- 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>
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?