diff options
author | Keith Seitz <keiths@redhat.com> | 2017-09-06 12:50:52 -0700 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2017-09-06 12:50:52 -0700 |
commit | 73b9be8b5301c4ac056e10c38a47414867ee892a (patch) | |
tree | dc45b20ab518339c24b2258c07753f9cca76f983 /gdb/d-exp.y | |
parent | 5c887dd5f699f953e274ba5981fe331eec8e224d (diff) | |
download | binutils-73b9be8b5301c4ac056e10c38a47414867ee892a.zip binutils-73b9be8b5301c4ac056e10c38a47414867ee892a.tar.gz binutils-73b9be8b5301c4ac056e10c38a47414867ee892a.tar.bz2 |
Introduce dw2_linkage_name and dw2_linkage_name_attr.
The DWARF reader is littered with the following idiom to read a linkage name
from the debug info:
mangled = dwarf2_string_attr (die, DW_AT_linkage_name, cu);
if (mangled == NULL)
mangled = dwarf2_string_attr (die, DW_AT_MIPS_linkage_name, cu);
This patch introduces functions to simplify this to:
mangled = dw2_linkage_name (die, cu);
or
attr = dw2_linkage_name_attr (die, cu);
gdb/ChangeLog:
* dwarf2read.c (dw2_linkage_name_attr): New function.
(dw2_linkage_name): New function.
(dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
(guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
(anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
Diffstat (limited to 'gdb/d-exp.y')
0 files changed, 0 insertions, 0 deletions