diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2016-10-06 13:01:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2016-10-06 13:03:29 -0400 |
commit | f2ddf8f6caffc513751ebfb3608c3a453aed5103 (patch) | |
tree | 2ae91d1a450ca2dc5c2a9c625ef26343951a393b /gdb | |
parent | 1ce1f6debf17be7a5121efa0684f0ec1449f8fc4 (diff) | |
download | gdb-f2ddf8f6caffc513751ebfb3608c3a453aed5103.zip gdb-f2ddf8f6caffc513751ebfb3608c3a453aed5103.tar.gz gdb-f2ddf8f6caffc513751ebfb3608c3a453aed5103.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')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/frame.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5f957c0..7ebe133 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 Maciej W. Rozycki <macro@imgtec.com> * mips-tdep.c (mips_pseudo_register_type): Make FCRs always 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. */ |