From patchwork Fri Aug 15 12:33:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 2401 Received: (qmail 4389 invoked by alias); 15 Aug 2014 12:33:07 -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 4350 invoked by uid 89); 15 Aug 2014 12:33:06 -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_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 15 Aug 2014 12:33:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 878E5116524; Fri, 15 Aug 2014 08:33:02 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yZ6n9S4KfwFj; Fri, 15 Aug 2014 08:33:02 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5B831116523; Fri, 15 Aug 2014 08:33:02 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id F06D3410C9; Fri, 15 Aug 2014 05:33:00 -0700 (PDT) Date: Fri, 15 Aug 2014 05:33:00 -0700 From: Joel Brobecker To: Eli Zaretskii Cc: yao@codesourcery.com, gdb-patches@sourceware.org Subject: Re: Warnings in native MinGW32 build of GDB 7.8 Message-ID: <20140815123300.GA6037@adacore.com> References: <83r40plpp3.fsf@gnu.org> <53EAE47A.6030700@codesourcery.com> <83k36cifeq.fsf@gnu.org> <20140813174227.GF4881@adacore.com> <83d2c4i7y2.fsf@gnu.org> <20140813181033.GG4881@adacore.com> <20140813182655.GH4881@adacore.com> <83bnroi5tc.fsf@gnu.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <83bnroi5tc.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) > > Attached is a patch that does that. Can you confirm it fixes your > > warnings? > > Yes, it does. Thanks! Thanks, Eli. I just pushed that patch. And since I was missing one piece in the ChangeLog entry, I am attaching the patch I ended up pushing. The diff itself is the same though. From eb7a547ad40c97ca306e29c94678e4eab1822089 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 13 Aug 2014 11:15:00 -0700 Subject: [PATCH] Add "frame.h" #include in gdbarch.h. This include is needed because gdbarch_dummy_id needs the full definition of struct frame_id. gdb/ChangeLog: * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct frame_info" partial declaration. * gdbarch.h: Regenerate. Tested on x86_64-linux by rebuilding GDB. --- gdb/ChangeLog | 6 ++++++ gdb/gdbarch.h | 3 ++- gdb/gdbarch.sh | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 53cc615..6aa6592 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-08-15 Joel Brobecker + + * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct + frame_info" partial declaration. + * gdbarch.h: Regenerate. + 2014-08-15 Yao Qi * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'. diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 5388e6e..0303b2e 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -35,9 +35,10 @@ #ifndef GDBARCH_H #define GDBARCH_H +#include "frame.h" + struct floatformat; struct ui_file; -struct frame_info; struct value; struct objfile; struct obj_section; diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 61d0781..2a8bca8 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -1124,9 +1124,10 @@ cat <