This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Warnings in native MinGW32 build of GDB 7.8
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: yao at codesourcery dot com, gdb-patches at sourceware dot org
- Date: Wed, 13 Aug 2014 11:26:55 -0700
- Subject: Re: Warnings in native MinGW32 build of GDB 7.8
- Authentication-results: sourceware.org; auth=none
- References: <83r40plpp3 dot fsf at gnu dot org> <53EAE47A dot 6030700 at codesourcery dot com> <83k36cifeq dot fsf at gnu dot org> <20140813174227 dot GF4881 at adacore dot com> <83d2c4i7y2 dot fsf at gnu dot org> <20140813181033 dot GG4881 at adacore dot com>
> > I can do the 1st and the 3rd parts, but I'd prefer not to touch
> > gdbarch.sh. Could one of you please do that?
Attached is a patch that does that. Can you confirm it fixes your
warnings?
--
Joel
>From ee8948e61a8047d67cf8ad32d3259dbe7951a527 Mon Sep 17 00:00:00 2001
From: Joel Brobecker <brobecker@adacore.com>
Date: Wed, 13 Aug 2014 11:15:00 -0700
Subject: [PATCH] Add "frame.h" #include in gdbarch.h.
This include is needed because of 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" advance declaration.
Tested on x86_64-linux by rebuilding GDB.
---
gdb/gdbarch.h | 3 ++-
gdb/gdbarch.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
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 <<EOF
#ifndef GDBARCH_H
#define GDBARCH_H
+#include "frame.h"
+
struct floatformat;
struct ui_file;
-struct frame_info;
struct value;
struct objfile;
struct obj_section;
--
1.9.1