aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
Diffstat (limited to 'debug')
-rw-r--r--debug/DwarfPrinter.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/DwarfPrinter.ml b/debug/DwarfPrinter.ml
index 7469c4af..ef44a2d5 100644
--- a/debug/DwarfPrinter.ml
+++ b/debug/DwarfPrinter.ml
@@ -658,6 +658,7 @@ module DwarfPrinter(Target: DWARF_TARGET):
print_label oc line_start;
list_opt s (fun () ->
section oc Section_debug_str;
+ let s = List.sort (fun (a,_) (b,_) -> Pervasives.compare a b) s in
List.iter (fun (id,s) ->
print_label oc (loc_to_label id);
fprintf oc " .asciz \"%s\"\n" s) s)