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 doesn't follow DW_AT_specification


If a function call from A to B is inlined, and the DWARF info for A
has a DW_AT_specification attribute, the DWARF reader doesn't follow
the ref to get the name of A from its declaration DIE. Oddly enough,
it does in the case where the inlined function B itself has a
DW_AT_specification attribute.

Is this patch OK?

-cary


bfd/ChangeLog:

	* dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.

Index: dwarf2.c
===================================================================
RCS file: /cvs/src/src/bfd/dwarf2.c,v
retrieving revision 1.139
diff -u -p -r1.139 dwarf2.c
--- dwarf2.c	3 Mar 2011 23:43:08 -0000	1.139
+++ dwarf2.c	6 Apr 2011 23:45:47 -0000
@@ -2164,6 +2164,7 @@ scan_unit_for_symbols (struct comp_unit
 		  break;

 		case DW_AT_abstract_origin:
+		case DW_AT_specification:
 		  func->name = find_abstract_instance_name (unit, &attr);
 		  break;


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