diff options
author | Tom Tromey <tom@tromey.com> | 2019-03-22 16:06:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-03-24 23:32:09 -0600 |
commit | a930ebcdf9594d6b6f91b634dceec1b2425a76a0 (patch) | |
tree | d6b6adacf959005487d0f6dba6e94bb4e5803dd0 /gdb/expression.h | |
parent | 582942f4560f1c8d2a60c2557267f9d3ad8dd6aa (diff) | |
download | binutils-a930ebcdf9594d6b6f91b634dceec1b2425a76a0.zip binutils-a930ebcdf9594d6b6f91b634dceec1b2425a76a0.tar.gz binutils-a930ebcdf9594d6b6f91b634dceec1b2425a76a0.tar.bz2 |
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 <tom@tromey.com>
* expression.h: Don't include symtab.h.
(struct block): Forward declare.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r-- | gdb/expression.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/expression.h b/gdb/expression.h index 36f18be..8db4b9d 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 |