From 5e0e155f859627e804d3acea25e0c0bcf187cec6 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 25 Aug 2015 12:09:29 +0200 Subject: Fixed abbreviation of DW_TAG_formal_parameter. Dwarf debuging entries for formal parameters were printed as variables. This could lead to confusion in function pointer types and later with local variables. --- debug/DwarfPrinter.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug/DwarfPrinter.ml') diff --git a/debug/DwarfPrinter.ml b/debug/DwarfPrinter.ml index f9c2034e..7f1caaf6 100644 --- a/debug/DwarfPrinter.ml +++ b/debug/DwarfPrinter.ml @@ -124,7 +124,7 @@ module DwarfPrinter(Target: DWARF_TARGET)(DwarfAbbrevs:DWARF_ABBREVS): add_abbr_entry (0x1c,value_type_abbr) buf; add_name buf | DW_TAG_formal_parameter e -> - prologue 0x34; + prologue 0x5; add_attr_some e.formal_parameter_file_loc add_file_loc; add_attr_some e.formal_parameter_artificial (add_abbr_entry (0x34,artificial_type_abbr)); add_location e.formal_parameter_location buf; -- cgit