This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] frame.h: Forward-declare struct ui_out
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 6 Oct 2016 17:02:36 -0000
- Subject: [binutils-gdb] frame.h: Forward-declare struct ui_out
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d73f9c4bab1a0ec82007f9d36b8a7bf5d34f7bf6
commit d73f9c4bab1a0ec82007f9d36b8a7bf5d34f7bf6
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Thu Oct 6 13:01:37 2016 -0400
frame.h: Forward-declare struct ui_out
Fixes this failure when building in C mode. I think it's relevant for master
as well, since it's a good practice to include (or forward-declare) what you
use.
In file included from ../../binutils-gdb/gdb/gdbarch.h:38:0,
from ../../binutils-gdb/gdb/defs.h:653,
from ../../binutils-gdb/gdb/dictionary.c:23:
../../binutils-gdb/gdb/frame.h:710:48: warning: â??struct ui_outâ?? declared inside parameter list will not be visible outside of this definition or declaration
extern void print_stack_frame_to_uiout (struct ui_out *uiout,
gdb/ChangeLog:
* frame.h: Forward-declare struct ui_out.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/frame.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 981ccf4..b60b3e6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
+
+ * frame.h: Forward-declare struct ui_out.
+
2016-10-06 Tom Tromey <tom@tromey.com>
* MAINTAINERS: Remove Java test maintainer.
diff --git a/gdb/frame.h b/gdb/frame.h
index de13e7d..a05ac82 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -77,6 +77,7 @@ struct frame_base;
struct block;
struct gdbarch;
struct ui_file;
+struct ui_out;
/* Status of a given frame's stack. */