aboutsummaryrefslogtreecommitdiffstats
path: root/debug/DebugInformation.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-02 17:10:48 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-02 17:10:48 +0200
commitb511f66bee59d2792427322b7cbaa47c2590358a (patch)
tree92908b19153a10816810012002727899901ef3f1 /debug/DebugInformation.ml
parente005c477da2f9ac9b9490cc30e59412cc626b54d (diff)
parent2bfa77d9eb3940b9b46865f7ebe760365164d312 (diff)
downloadcompcert-kvx-b511f66bee59d2792427322b7cbaa47c2590358a.tar.gz
compcert-kvx-b511f66bee59d2792427322b7cbaa47c2590358a.zip
Merge branch 'gnu-debug'
Conflicts: debug/DebugInformation.ml
Diffstat (limited to 'debug/DebugInformation.ml')
-rw-r--r--debug/DebugInformation.ml12
1 files changed, 9 insertions, 3 deletions
diff --git a/debug/DebugInformation.ml b/debug/DebugInformation.ml
index 6046f894..36138882 100644
--- a/debug/DebugInformation.ml
+++ b/debug/DebugInformation.ml
@@ -644,27 +644,32 @@ let function_end atom loc =
List.iter (fun id-> end_live_range (atom,id) loc) !open_vars;
open_vars:= []
-let compilation_section_start: (string,int * int * int * string) Hashtbl.t = Hashtbl.create 7
+let compilation_section_start: (string,int) Hashtbl.t = Hashtbl.create 7
let compilation_section_end: (string,int) Hashtbl.t = Hashtbl.create 7
+let diab_additional: (string,int * int * string) Hashtbl.t = Hashtbl.create 7
+
let add_compilation_section_start sec addr =
Hashtbl.add compilation_section_start sec addr
let add_compilation_section_end sec addr =
Hashtbl.add compilation_section_end sec addr
+let add_diab_info sec addr =
+ Hashtbl.add diab_additional sec addr
+
let exists_section sec =
Hashtbl.mem compilation_section_start sec
let filenum: (string * string,int) Hashtbl.t = Hashtbl.create 7
let compute_file_enum end_label entry_label line_end =
- Hashtbl.iter (fun sec (_,_,_,secname) ->
+ Hashtbl.iter (fun sec (_,_,secname) ->
Hashtbl.add compilation_section_end sec (end_label secname);
StringSet.iter (fun file ->
let lbl = entry_label file in
Hashtbl.add filenum (sec,file) lbl) !all_files;
- line_end ()) compilation_section_start
+ line_end ()) diab_additional
let printed_vars: StringSet.t ref = ref StringSet.empty
@@ -688,4 +693,5 @@ let init name =
Hashtbl.reset compilation_section_end;
Hashtbl.reset filenum;
all_files := StringSet.singleton name;
+ Hashtbl.reset diab_additional;
printed_vars := StringSet.empty;