From patchwork Wed Feb 27 20:18:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 31665 Received: (qmail 121600 invoked by alias); 27 Feb 2019 20:19:49 -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 121516 invoked by uid 89); 27 Feb 2019 20:19:49 -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=mentions, accounted, object's, Hx-languages-length:1733 X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.143.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Feb 2019 20:19:47 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 5A5AC27D76 for ; Wed, 27 Feb 2019 14:18:53 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id z5fJgJ9yc2PzOz5fJgjijM; Wed, 27 Feb 2019 14:18:53 -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=BbJIJ6OYww7UJBIZwdBioFLK74V+2DDIG0gsl/cspPo=; b=s+IOjQ1L82A3t0VojvpNHXJ9oC ItyScvLUBKEBJiE1SUrxmhOU5qtt5Y/FpqroCn6b0Ir7cT5xx3cIkhl+fs7ZMSSGnIvEApa+ShbgN YXh8dhNL11GxieotOHtXcXxSI; Received: from 75-166-85-218.hlrn.qwest.net ([75.166.85.218]:36364 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gz5fJ-004Fi1-31; Wed, 27 Feb 2019 14:18:53 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 02/22] Update two cleanup comments Date: Wed, 27 Feb 2019 13:18:29 -0700 Message-Id: <20190227201849.32210-3-tom@tromey.com> In-Reply-To: <20190227201849.32210-1-tom@tromey.com> References: <20190227201849.32210-1-tom@tromey.com> This updates another couple of comments to remove a mentions of cleanups. gdb/ChangeLog 2019-02-27 Tom Tromey * inferior.h (class inferior): Update comment. * gdbthread.h (class thread_info): Update comment. --- gdb/ChangeLog | 5 +++++ gdb/gdbthread.h | 2 +- gdb/inferior.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 3b9d56904d3..2d497d51cf5 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -235,7 +235,7 @@ struct private_thread_info reverting back (e.g., due to a "kill" command). If the thread meanwhile exits before being re-selected, then the thread object is left listed in the thread list, but marked with state - THREAD_EXITED. (See make_cleanup_restore_current_thread and + THREAD_EXITED. (See scoped_restore_current_thread and delete_thread). All other thread references are considered weak references. Placing a thread in the thread list is an implicit strong reference, and is thus not accounted for in the thread's diff --git a/gdb/inferior.h b/gdb/inferior.h index 2d1bb97a283..f98e67d33f4 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -335,7 +335,7 @@ extern void set_current_inferior (inferior *); the inferior object's refcount, to prevent something deleting the inferior object before reverting back (e.g., due to a "remove-inferiors" command (see - make_cleanup_restore_current_thread). All other inferior + scoped_restore_current_inferior). All other inferior references are considered weak references. Inferiors are always listed exactly once in the inferior list, so placing an inferior in the inferior list is an implicit, not counted strong reference. */