From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31150 invoked by alias); 26 Nov 2013 21:57:00 -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 31114 invoked by uid 89); 26 Nov 2013 21:57:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_20,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Nov 2013 21:56:58 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAQLntt3016501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Nov 2013 16:49:58 -0500 Received: from barimba.redhat.com (ovpn-113-124.phx2.redhat.com [10.3.113.124]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rAQLnprt008652; Tue, 26 Nov 2013 16:49:55 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 8/8] update free_objfile comment Date: Tue, 26 Nov 2013 22:27:00 -0000 Message-Id: <1385502587-29757-9-git-send-email-tromey@redhat.com> In-Reply-To: <1385502587-29757-1-git-send-email-tromey@redhat.com> References: <1385502587-29757-1-git-send-email-tromey@redhat.com> X-SW-Source: 2013-11/txt/msg00831.txt.bz2 The introductory comment to free_objfile is obsolete. This patch fixes it by removing all the obsolete bits. 2013-11-26 Tom Tromey * objfiles.c (free_objfile): Update comment. --- gdb/ChangeLog | 4 ++++ gdb/objfiles.c | 16 +--------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gdb/objfiles.c b/gdb/objfiles.c index e8d641f..4f84ff6 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -509,21 +509,7 @@ free_objfile_separate_debug (struct objfile *objfile) } } -/* Destroy an objfile and all the symtabs and psymtabs under it. Note - that as much as possible is allocated on the objfile_obstack - so that the memory can be efficiently freed. - - Things which we do NOT free because they are not in malloc'd memory - or not in memory specific to the objfile include: - - objfile -> sf - - FIXME: If the objfile is using reusable symbol information (via mmalloc), - then we need to take into account the fact that more than one process - may be using the symbol information at the same time (when mmalloc is - extended to support cooperative locking). When more than one process - is using the mapped symbol info, we need to be more careful about when - we free objects in the reusable area. */ +/* Destroy an objfile and all the symtabs and psymtabs under it. */ void free_objfile (struct objfile *objfile) -- 1.8.1.4