From b4846ffadfa3fbb73ffa7d9c43e5218adeece8da Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 18 Aug 2015 12:50:19 +0200 Subject: Added support for the location of non static global variables. --- debug/CtoDwarf.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug/CtoDwarf.ml') diff --git a/debug/CtoDwarf.ml b/debug/CtoDwarf.ml index cead6099..99b77e6f 100644 --- a/debug/CtoDwarf.ml +++ b/debug/CtoDwarf.ml @@ -304,7 +304,7 @@ let glob_var_to_dwarf (s,n,t,_) gloc = variable_file_loc = (Some gloc); variable_declaration = Some at_decl; variable_external = Some ext; - variable_location = None; + variable_location = if ext then Some (LocSymbol n.name) else None; variable_name = n.name; variable_segment = None; variable_type = i; -- cgit