From: Tom Tromey Date: Fri, 22 Mar 2019 22:06:36 +0000 (-0600) Subject: Don't include symtab.h from expression.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a930ebcdf9594d6b6f91b634dceec1b2425a76a0;p=binutils-gdb.git Don't include symtab.h from expression.h expression.h includes symtab.h, but apparently only for the declaration of struct block. This patch changes it to foward-declare the structure, and remove the include. gdb/ChangeLog 2019-03-24 Tom Tromey * expression.h: Don't include symtab.h. (struct block): Forward declare. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4cef31e23f..b831b283148 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-03-24 Tom Tromey + + * expression.h: Don't include symtab.h. + (struct block): Forward declare. + 2019-03-24 Tom Tromey * c-exp.y (typebase): Remove casts. diff --git a/gdb/expression.h b/gdb/expression.h index 36f18be6af6..8db4b9d7e26 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -20,9 +20,6 @@ #if !defined (EXPRESSION_H) #define EXPRESSION_H 1 - -#include "symtab.h" /* Needed for "struct block" type. */ - /* While parsing expressions we need to track the innermost lexical block that we encounter. In some situations we need to track the innermost block just for symbols, and in other situations we want to track the