From patchwork Wed Jan 9 03:34:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 31004 Received: (qmail 37084 invoked by alias); 9 Jan 2019 03:34:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 36773 invoked by uid 89); 9 Jan 2019 03:34:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:998 X-HELO: gateway34.websitewelcome.com Received: from gateway34.websitewelcome.com (HELO gateway34.websitewelcome.com) (192.185.148.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jan 2019 03:34:33 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway34.websitewelcome.com (Postfix) with ESMTP id EA68BFC52E3 for ; Tue, 8 Jan 2019 21:34:31 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id h4dTgfge12qH7h4dTgKYtB; Tue, 08 Jan 2019 21:34:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bV/3fvYpxuW2aCTq2G55jpy4UxgfaR86rMSnE893lgc=; b=EXw9eVeg7VTKgXuTS0uXE1BpW7 6d/ComPqevwJhk7BgNQKmpPiR9YaECsFWGY1/9F+ysskzD7LpEbfs+jE7y4ReFNebYAy2kCh9zVy0 aR7Kdi8b4hWEWtSXIKOiKMTud; Received: from 75-166-72-210.hlrn.qwest.net ([75.166.72.210]:47026 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gh4dT-000HG2-NI; Tue, 08 Jan 2019 21:34:31 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 10/12] Update an obsolete cleanup comment Date: Tue, 8 Jan 2019 20:34:24 -0700 Message-Id: <20190109033426.16062-11-tom@tromey.com> In-Reply-To: <20190109033426.16062-1-tom@tromey.com> References: <20190109033426.16062-1-tom@tromey.com> This updates a comment in fetch_inferior_event. The comment refers to a cleanup that is now a scoped_restore_current_thread. gdb/ChangeLog 2019-01-08 Tom Tromey * infrun.c (fetch_inferior_event): Update comment. --- gdb/ChangeLog | 4 ++++ gdb/infrun.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index f43f39a253..7b8401490a 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3746,7 +3746,7 @@ fetch_inferior_event (void *client_data) ptid_t finish_ptid = !target_is_non_stop_p () ? minus_one_ptid : ecs->ptid; scoped_finish_thread_state finish_state (finish_ptid); - /* Get executed before make_cleanup_restore_current_thread above to apply + /* Get executed before scoped_restore_current_thread above to apply still for the thread which has thrown the exception. */ cleanup_function defer_bpstat_clear (bpstat_clear_actions); cleanup_function defer_delete_threads