This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Remove unnecessary call to save_current_inferior


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]