From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17534 invoked by alias); 13 Feb 2019 21:29:36 -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 17364 invoked by uid 89); 13 Feb 2019 21:29:36 -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= X-HELO: gateway22.websitewelcome.com Received: from gateway22.websitewelcome.com (HELO gateway22.websitewelcome.com) (192.185.47.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Feb 2019 21:29:32 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway22.websitewelcome.com (Postfix) with ESMTP id CDC8C2C20D for ; Wed, 13 Feb 2019 15:29:30 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id u25ygSDjJ4FKpu25ygmjA4; Wed, 13 Feb 2019 15:29:30 -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=IIMlXtiu+lc4bukr490PKBd1I8f8cU5s2PzPOoLjFd8=; b=LeV0dr4XK0pR5VdGxme2/ps3RB 7/dTgWCoairBYXYerOUj0WkidLAZRR8Ys2bMc7mcq2yk7BT7//lc9p45Rw7Gl6TZyTsVrRzcitzpa 5Mko6LjNjgIn3t+6RpzrnyqVM; Received: from 75-166-72-210.hlrn.qwest.net ([75.166.72.210]:42554 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gu25y-001UWe-KO; Wed, 13 Feb 2019 15:29:30 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 02/20] Update two cleanup comments Date: Wed, 13 Feb 2019 21:30:00 -0000 Message-Id: <20190213212927.9474-3-tom@tromey.com> In-Reply-To: <20190213212927.9474-1-tom@tromey.com> References: <20190213212927.9474-1-tom@tromey.com> X-SW-Source: 2019-02/txt/msg00202.txt.bz2 This updates another couple of comments to remove a mentions of cleanups. gdb/ChangeLog 2019-02-13 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. */ -- 2.17.2