aboutsummaryrefslogtreecommitdiffstats
path: root/debug/DwarfPrinter.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-08-25 12:09:29 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-08-25 12:09:29 +0200
commit5e0e155f859627e804d3acea25e0c0bcf187cec6 (patch)
tree7149ab2f8371da8dd5ad1bbbb00ccfe5f462a286 /debug/DwarfPrinter.ml
parentc3579778940839b9d4753ec47169ceadda55c083 (diff)
downloadcompcert-kvx-5e0e155f859627e804d3acea25e0c0bcf187cec6.tar.gz
compcert-kvx-5e0e155f859627e804d3acea25e0c0bcf187cec6.zip
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.
Diffstat (limited to 'debug/DwarfPrinter.ml')
-rw-r--r--debug/DwarfPrinter.ml2
1 files changed, 1 insertions, 1 deletions
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;