projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3b2b8
)
Remove unnecessary cast
author
Tom Tromey
<tromey@adacore.com>
Wed, 22 Mar 2023 19:22:24 +0000
(13:22 -0600)
committer
Tom Tromey
<tromey@adacore.com>
Wed, 22 Mar 2023 19:22:24 +0000
(13:22 -0600)
I found an upcast from template_symbol to symbol. This was necessary
long ago, but since symbols use inheritance now, it is not. This
patch removes it. Tested by rebuilding.
gdb/dwarf2/read.c
patch
|
blob
|
history
diff --git
a/gdb/dwarf2/read.c
b/gdb/dwarf2/read.c
index 3fc23e2d43fbf8dfa9050d0d065cce9bfe93f04e..c9208a097bff73a213dadf5ac1ee1f6a5d94a24a 100644
(file)
--- a/
gdb/dwarf2/read.c
+++ b/
gdb/dwarf2/read.c
@@
-10083,8
+10083,7
@@
read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
gdb_assert (cu->get_builder () != nullptr);
newobj = cu->get_builder ()->push_context (0, lowpc);
- newobj->name = new_symbol (die, read_type_die (die, cu), cu,
- (struct symbol *) templ_func);
+ newobj->name = new_symbol (die, read_type_die (die, cu), cu, templ_func);
if (dwarf2_flag_true_p (die, DW_AT_main_subprogram, cu))
set_objfile_main_name (objfile, newobj->name->linkage_name (),