diff options
author | Tom Tromey <tom@tromey.com> | 2017-11-17 11:55:38 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-11-17 14:34:14 -0700 |
commit | 68e745e38edebd2a12d60ef7b5774066db3f1c40 (patch) | |
tree | b3ac1b1b134242ed775ec16b2d16272412c7e295 /gdb/symtab.c | |
parent | 71a3c36949407eafea744bf00334c4e0c136f927 (diff) | |
download | gdb-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.c | 2 |
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; } |