diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-03 20:09:47 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-03 20:09:47 +0000 |
commit | 76d5acf9825f270c51d4068826b8f69ee1e32040 (patch) | |
tree | 756097f4a5ce2949b962b98c2699dbc226b0e91e /gdb/gdbtypes.h | |
parent | 5a6f1f7dd36023772d861396c7cb8dcfc2b67338 (diff) | |
download | gdb-76d5acf9825f270c51d4068826b8f69ee1e32040.tar.gz |
gdb/
Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
* dwarf2expr.h: Include gdbtypes.h.
(enum call_site_parameter_kind, union call_site_parameter_u): Remove
these forward declarations.
(cu_offset, sect_offset): Move these ...
* gdbtypes.h: Remove include dwarf2expr.h.
(cu_offset, sect_offset): ... here.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index cf7d398bdde..3b4edea21e4 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -23,7 +23,6 @@ #define GDBTYPES_H 1 #include "hashtab.h" -#include "dwarf2expr.h" /* Forward declarations for prototypes. */ struct field; @@ -31,6 +30,21 @@ struct block; struct value_print_options; struct language_defn; +/* These declarations are DWARF-specific as some of the gdbtypes.h data types + are already DWARF-specific. */ + +/* Offset relative to the start of its containing CU (compilation unit). */ +typedef struct +{ + unsigned int cu_off; +} cu_offset; + +/* Offset relative to the start of its .debug_info or .debug_types section. */ +typedef struct +{ + unsigned int sect_off; +} sect_offset; + /* Some macros for char-based bitfields. */ #define B_SET(a,x) ((a)[(x)>>3] |= (1 << ((x)&7))) |