From patchwork Tue Jan 22 08:04:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 31151 Received: (qmail 82269 invoked by alias); 22 Jan 2019 08:04:52 -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 82254 invoked by uid 89); 22 Jan 2019 08:04:52 -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= X-HELO: gateway34.websitewelcome.com Received: from gateway34.websitewelcome.com (HELO gateway34.websitewelcome.com) (192.185.148.104) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Jan 2019 08:04:51 +0000 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 1A81578681 for ; Tue, 22 Jan 2019 02:04:49 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id lr3BgZ8UdYTGMlr3BgHuya; Tue, 22 Jan 2019 02:04:49 -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=RzscsK5MC0vHsaQnkkyKiIZ55mOjiQk5lr4M8oxHR7g=; b=M61DuvXyeKshk92Z3Z5b9IrJ/i cdCc7TIOxkuYL//9vli6rEq85eaxi3WGaH0smeXflpM/FFUHap6GvI4K73isM1ZE+0f4gEm284+YC yVovzcGjinFz85PLjg3aDMzTH; Received: from 75-166-72-210.hlrn.qwest.net ([75.166.72.210]:60356 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1glr3A-0037XS-QA; Tue, 22 Jan 2019 02:04:48 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 3/9] Use "struct bcache" in objfiles.h Date: Tue, 22 Jan 2019 01:04:39 -0700 Message-Id: <20190122080445.32658-4-tom@tromey.com> In-Reply-To: <20190122080445.32658-1-tom@tromey.com> References: <20190122080445.32658-1-tom@tromey.com> If objfiles.h is included after bcache.h, then the "bcache" function will cause a compiler error because "bcache" will be seen as a function, not a type. Fix this error by using the "struct" keyword. gdb/ChangeLog 2019-01-21 Tom Tromey * objfiles.h (struct objfile_per_bfd_storage): Use "struct" keyword for bcache. --- gdb/ChangeLog | 5 +++++ gdb/objfiles.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 5f106d9835..a10781f598 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -240,11 +240,11 @@ struct objfile_per_bfd_storage /* Byte cache for file names. */ - bcache *filename_cache = NULL; + struct bcache *filename_cache = NULL; /* Byte cache for macros. */ - bcache *macro_cache = NULL; + struct bcache *macro_cache = NULL; /* The gdbarch associated with the BFD. Note that this gdbarch is determined solely from BFD information, without looking at target