This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] bfd/dwarf2.c: Fix a typo issue related with commit 60d77146a249ae9b51d7ce98930cdbedb2cfa352
- From: Chen Gang <gang dot chen dot 5i5j at gmail dot com>
- To: nickc at redhat dot com, amodra at gmail dot com
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Mon, 25 Aug 2014 17:06:34 +0800
- Subject: [PATCH] bfd/dwarf2.c: Fix a typo issue related with commit 60d77146a249ae9b51d7ce98930cdbedb2cfa352
- Authentication-results: sourceware.org; auth=none
According to related commit 60d77146a249ae9b51d7ce98930cdbedb2cfa352,
need use 'form' instead of 'name'.
The related error (under Darwin x86_64):
../../binutils-gdb/bfd/dwarf2.c:2222:27: error: implicit conversion from enumeration type 'enum dwarf_attribute' to different enumeration type 'enum dwarf_form'
[-Werror,-Wenum-conversion]
if (is_str_attr (attr.name))
~~~~~~~~~~~ ~~~~~^~~~
bfd/ChangeLog:
* dwarf2.c (find_abstract_instance_name): Use 'form' instead of
'name' for the typo issue, which related with commit
60d77146a249ae9b51d7ce98930cdbedb2cfa352.
---
bfd/dwarf2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 583504b..1ca69b6 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -2219,7 +2219,7 @@ find_abstract_instance_name (struct comp_unit *unit,
case DW_AT_MIPS_linkage_name:
/* PR 16949: Corrupt debug info can place
non-string forms into these attributes. */
- if (is_str_attr (attr.name))
+ if (is_str_attr (attr.form))
name = attr.u.str;
break;
default:
--
1.8.5.2 (Apple Git-48)