aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-10-06 13:01:37 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2016-10-06 13:01:38 -0400
commitd73f9c4bab1a0ec82007f9d36b8a7bf5d34f7bf6 (patch)
tree43765a358a4048b3a417a9431f51375ee292f29a /gdb/frame.h
parent9c37b5aed98e5996a9777a366bfcc371c0e1a92d (diff)
downloadgdb-d73f9c4bab1a0ec82007f9d36b8a7bf5d34f7bf6.zip
gdb-d73f9c4bab1a0ec82007f9d36b8a7bf5d34f7bf6.tar.gz
gdb-d73f9c4bab1a0ec82007f9d36b8a7bf5d34f7bf6.tar.bz2
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.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h1
1 files changed, 1 insertions, 0 deletions
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. */