From 34cc6a603f34a430fc3b9a7071dcc1e19b2b7250 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Sun, 4 Oct 2015 22:15:20 +0200 Subject: Ensure that there are file directives for all files used in the debug information. --- debug/DebugInformation.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'debug/DebugInformation.ml') diff --git a/debug/DebugInformation.ml b/debug/DebugInformation.ml index 36138882..874dfb77 100644 --- a/debug/DebugInformation.ml +++ b/debug/DebugInformation.ml @@ -663,7 +663,7 @@ let exists_section sec = let filenum: (string * string,int) Hashtbl.t = Hashtbl.create 7 -let compute_file_enum end_label entry_label line_end = +let compute_diab_file_enum end_label entry_label line_end = Hashtbl.iter (fun sec (_,_,secname) -> Hashtbl.add compilation_section_end sec (end_label secname); StringSet.iter (fun file -> @@ -671,6 +671,9 @@ let compute_file_enum end_label entry_label line_end = Hashtbl.add filenum (sec,file) lbl) !all_files; line_end ()) diab_additional +let compute_gnu_file_enum f = + StringSet.iter f !all_files + let printed_vars: StringSet.t ref = ref StringSet.empty let variable_printed id = -- cgit