aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-11-17 11:55:38 -0700
committerTom Tromey <tom@tromey.com>2017-11-17 14:34:14 -0700
commit68e745e38edebd2a12d60ef7b5774066db3f1c40 (patch)
treeb3ac1b1b134242ed775ec16b2d16272412c7e295 /gdb/symtab.c
parent71a3c36949407eafea744bf00334c4e0c136f927 (diff)
downloadgdb-68e745e38edebd2a12d60ef7b5774066db3f1c40.zip
gdb-68e745e38edebd2a12d60ef7b5774066db3f1c40.tar.gz
gdb-68e745e38edebd2a12d60ef7b5774066db3f1c40.tar.bz2
Make template_symbol derive from symbol
This changes template_symbol to derive from symbol, which seems a bit cleaner; and also more consistent with rust_vtable_symbol. 2017-11-17 Tom Tromey <tom@tromey.com> * dwarf2read.c (read_func_scope): Update. * symtab.h (struct template_symbol): Derive from symbol. <base>: Remove.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 38bc713..3d59367 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -5800,7 +5800,7 @@ allocate_template_symbol (struct objfile *objfile)
struct template_symbol *result;
result = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct template_symbol);
- initialize_objfile_symbol_1 (&result->base);
+ initialize_objfile_symbol_1 (result);
return result;
}