This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] bfd/dwarf2.c: Fix a typo issue related with commit 60d77146a249ae9b51d7ce98930cdbedb2cfa352


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]