diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2014-09-11 22:30:23 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2014-09-11 22:39:01 +0200 |
commit | a01cbb490b34eda832c0215b8447e6aef68b0278 (patch) | |
tree | 654ac3342b2d2d8de4ce178643d420e5722c0bed /gdb | |
parent | 98880d46bdb1e88db447f876a8ac1f2a4de97dae (diff) | |
download | gdb-a01cbb490b34eda832c0215b8447e6aef68b0278.zip gdb-a01cbb490b34eda832c0215b8447e6aef68b0278.tar.gz gdb-a01cbb490b34eda832c0215b8447e6aef68b0278.tar.bz2 |
Make gdb/regcache.h self-contained.
gdb/
* regcache.h (struct regset): Declare.
Commit 0b3092721e5cfa1697f1dafe81efefdbb0236f21 added uses of struct regset to
gdb/regcache.h, but that struct is not declared in this file, and, as it
happens, also nowhere else in the #include chain on x86 GNU/Hurd. This results
in warnings/errors such as:
gcc-4.8 [...] ../../W._C._Handy/gdb/gdb.c
In file included from ./nm.h:25:0,
from ../../W._C._Handy/gdb/defs.h:454,
from ../../W._C._Handy/gdb/gdb.c:19:
../../W._C._Handy/gdb/regcache.h:190:9: warning: 'struct regset' declared inside parameter list [enabled by default]
size_t size);
^
../../W._C._Handy/gdb/regcache.h:190:9: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
../../W._C._Handy/gdb/regcache.h:193:10: warning: 'struct regset' declared inside parameter list [enabled by default]
int regnum, void *buf, size_t size);
^
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/regcache.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 676de56..30112cb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-09-11 Thomas Schwinge <thomas@codesourcery.com> + + * regcache.h (struct regset): Declare. + 2014-09-11 Pedro Alves <palves@redhat.com> PR gdb/17347 diff --git a/gdb/regcache.h b/gdb/regcache.h index 0361f22..0e0b84b 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -21,6 +21,7 @@ #define REGCACHE_H struct regcache; +struct regset; struct gdbarch; struct address_space; |