aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-03 20:09:49 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-03 20:09:49 +0000
commit836bf45453d96e2e4020982e1a44e22498d766fa (patch)
tree7d7a676aa25688a006340c09eea9f90bdd323fd0 /gdb/dwarf2expr.h
parent5f8ebec53d47aacc4dc1d67f3c9b0117539b2468 (diff)
downloadgdb-836bf45453d96e2e4020982e1a44e22498d766fa.zip
gdb-836bf45453d96e2e4020982e1a44e22498d766fa.tar.gz
gdb-836bf45453d96e2e4020982e1a44e22498d766fa.tar.bz2
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 db49b9c..19efbfd 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. */