From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24872 invoked by alias); 3 Sep 2013 20:17:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 24863 invoked by uid 89); 3 Sep 2013 20:17:55 -0000 Received: from mail-ie0-f170.google.com (HELO mail-ie0-f170.google.com) (209.85.223.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 03 Sep 2013 20:17:55 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f170.google.com Received: by mail-ie0-f170.google.com with SMTP id 16so9710079iea.29 for ; Tue, 03 Sep 2013 13:17:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=7dTzR9bCu84wG6ve7wLkbtuZdhN6m+pfz+Fg/5ydTis=; b=kf2pImxEpahw9tuNWxC0Ke8FfDf5GrUXZQLPjZAJ+0G7R8v3JDrg8uZggtznk+bn3l CPJpBm9e+QjDFSC0fvdpgJSUZvNwbQMvuF0JSsm9Y5icYwhpuWs9ACYkePPsyGG2cBkx +U51vkgv2DnbsySfsDVwUOt9Gf4y7n/SRayy3YRBf79RwyRZyzNfe92pNII8Zaj+VABi IWpaHKCVcDQOZreZDLeXFCgyrhZ3os185i+/xWscSqygnHfxv1PwkgJGnaaiWhe7+9WW YQhbA6XE/Ow+rCd+Pa5btJ+fqa61v14RGWhs02UjmYwUWF7UmkGf5K42yR3u8RbUlgZN VZPg== X-Gm-Message-State: ALoCoQk8QRbFg2OZiwX+l2PSEbAmeLuiurM2xIYLXbz7T9m7DBaHvRzrlAASSp6kFTteqZ+isBG/U/g1o/o1noIgy4IIQ3Y3tdW3D1EjI5lXKVGFx7pZoMq+TBNY9QmODydl7yvaijFTUaMURkcX40X1t75Qv/RfvbdkJ5TE4fPyCrwBQ3wWHvB3l7YjVDK4UPD2Mz9iBWdX9iHy9tZJ8Cj9aGKAz3XvCg== MIME-Version: 1.0 X-Received: by 10.50.39.18 with SMTP id l18mr17308018igk.4.1378239473307; Tue, 03 Sep 2013 13:17:53 -0700 (PDT) Received: by 10.64.26.131 with HTTP; Tue, 3 Sep 2013 13:17:53 -0700 (PDT) In-Reply-To: <5224E183.8080500@redhat.com> References: <5224E183.8080500@redhat.com> Date: Tue, 03 Sep 2013 20:17:00 -0000 Message-ID: Subject: Re: [RFA] Remove unnecessary call to save_current_inferior From: Doug Evans To: Pedro Alves Cc: gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00096.txt.bz2 On Mon, Sep 2, 2013 at 12:05 PM, Pedro Alves 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?