From patchwork Wed Jan 23 15:21:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 31191 Received: (qmail 66728 invoked by alias); 23 Jan 2019 15:21:55 -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 66333 invoked by uid 89); 23 Jan 2019 15:21:53 -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, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sk:!target X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Jan 2019 15:21:51 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 992FDDB94A; Wed, 23 Jan 2019 15:21:50 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id C62EF67147; Wed, 23 Jan 2019 15:21:49 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Cc: Tom Tromey , Andrew Burgess Subject: [PATCH v3 15/17] Update an obsolete cleanup comment Date: Wed, 23 Jan 2019 15:21:29 +0000 Message-Id: <20190123152131.29893-16-palves@redhat.com> In-Reply-To: <20190123152131.29893-1-palves@redhat.com> References: <20190123152131.29893-1-palves@redhat.com> From: Tom Tromey This updates a comment in fetch_inferior_event. The comment refers to a cleanup that is now a scoped_restore_current_thread. gdb/ChangeLog: yyyy-mm-dd Tom Tromey * infrun.c (fetch_inferior_event): Update comment. --- gdb/infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index 6857467983..cdfdf49070 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3744,7 +3744,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. */ auto defer_bpstat_clear = make_scope_exit (bpstat_clear_actions);