[PATCH] Make parser-defs.h and ax-gdb.h more self-contained

Pedro Alves palves@redhat.com
Wed Jun 26 11:38:00 GMT 2013


On 06/26/2013 05:31 AM, Sergio Durigan Junior wrote:
> Hi,
> 
> While debugging an IA-64 problem, I found that parser-defs.h and
> ax-gdb.h are not totally self-contained, i.e., they are missing some
> forward declarations or #include.  This patch fixes it.
> 
> For ax-gdb.h, it just adds a forward declaration for `union
> exp_element'.  For parser-defs.h, it adds forward declarations to
> `struct internalvar' and `enum noside', and also #include's
> expression.h, since the header file explicitly uses `enum exp_opcode'.

Forward declarations of enums is a gcc extension.  You need to include
the proper header instead.  But that's expression.h, and you've
already included it, so we can just remove that enum forward declaration.
OK with that change.

-- 
Pedro Alves



More information about the Gdb-patches mailing list