2020-11-06 14:21:41 +00:00
|
|
|
From 269d40a2ef3b020b5beb3f3de5b8e909c43ab53b Mon Sep 17 00:00:00 2001
|
|
|
|
From: Nick Clifton <nickc@redhat.com>
|
|
|
|
Date: Thu, 24 Sep 2020 13:42:04 +0100
|
|
|
|
Subject: [PATCH] Import patch from mainline to fix decoding DWARF information
|
|
|
|
in the BFD library.
|
|
|
|
|
|
|
|
PR 26520
|
|
|
|
* dwarf2.c (scan_unit_for_symbols): Add member entries to the
|
|
|
|
variable table.
|
|
|
|
---
|
2022-02-11 02:00:59 +00:00
|
|
|
---
|
|
|
|
bfd/dwarf2.c | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
2020-11-06 14:21:41 +00:00
|
|
|
--- a/bfd/dwarf2.c
|
|
|
|
+++ b/bfd/dwarf2.c
|
2022-02-11 02:00:59 +00:00
|
|
|
@@ -3404,7 +3404,8 @@
|
2020-11-06 14:21:41 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
func = NULL;
|
|
|
|
- if (abbrev->tag == DW_TAG_variable)
|
|
|
|
+ if (abbrev->tag == DW_TAG_variable
|
|
|
|
+ || abbrev->tag == DW_TAG_member)
|
|
|
|
{
|
|
|
|
size_t amt = sizeof (struct varinfo);
|
|
|
|
var = (struct varinfo *) bfd_zalloc (abfd, amt);
|
2022-02-11 02:00:59 +00:00
|
|
|
@@ -3516,7 +3517,7 @@
|
2020-11-06 14:21:41 +00:00
|
|
|
spec_var = lookup_var_by_offset (attr.u.val,
|
|
|
|
unit->variable_table);
|
|
|
|
if (spec_var == NULL)
|
|
|
|
- {
|
|
|
|
+ {
|
|
|
|
_bfd_error_handler (_("DWARF error: could not find "
|
|
|
|
"variable specification "
|
|
|
|
"at offset %lx"),
|