summaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-03 20:09:47 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-03 20:09:47 +0000
commit76d5acf9825f270c51d4068826b8f69ee1e32040 (patch)
tree756097f4a5ce2949b962b98c2699dbc226b0e91e /gdb/dwarf2expr.h
parent5a6f1f7dd36023772d861396c7cb8dcfc2b67338 (diff)
downloadgdb-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/dwarf2expr.h')
-rw-r--r--gdb/dwarf2expr.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h
index db49b9c5ceb..19efbfd78bb 100644
--- a/gdb/dwarf2expr.h
+++ b/gdb/dwarf2expr.h
@@ -24,22 +24,9 @@
#define DWARF2EXPR_H
#include "leb128.h"
+#include "gdbtypes.h"
struct dwarf_expr_context;
-enum call_site_parameter_kind;
-union call_site_parameter_u;
-
-/* 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;
/* Virtual method table for struct dwarf_expr_context below. */