summaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-08-01 23:35:04 +0000
committerDoug Evans <dje@google.com>2013-08-01 23:35:04 +0000
commita82b41ab61a641afe650cdde1a70c8834fe6c8ff (patch)
tree87cf6a8c66df21a413e3b2d4145c4773ce49c31f /gdb/symtab.h
parent735c540f6b8b8a77af01e7c324c0fb267005ffb8 (diff)
downloadgdb-a82b41ab61a641afe650cdde1a70c8834fe6c8ff.tar.gz
Further workarounds for binutils/15021.
* dwarf2read.c (recursively_compute_inclusions): Change type of result parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs. Watch for duplicate symtabs coming from type units. (compute_symtab_includes): Update call to recursively_compute_inclusions. Build vector of included symtabs instead of per_cus. * symtab.h (symtab_ptr): New typedef. (DEF_VEC_P (symtab_ptr)): New VEC type. * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr instead.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index c735e16295b..a95a9cfdb7e 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -936,6 +936,10 @@ struct symtab
#define BLOCKVECTOR(symtab) (symtab)->blockvector
#define LINETABLE(symtab) (symtab)->linetable
#define SYMTAB_PSPACE(symtab) (symtab)->objfile->pspace
+
+typedef struct symtab *symtab_ptr;
+DEF_VEC_P (symtab_ptr);
+
/* The virtual function table is now an array of structures which have the