Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix error in computation of Frame range when DW_AT_high_pc is a virtual address
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 19 Apr 2016 13:45:32 +0000 (15:45 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 19 Apr 2016 13:45:32 +0000 (15:45 +0200)
The begin() address was set instead of the end() one.

src/mc/mc_dwarf.cpp

index af30422..32742ef 100644 (file)
@@ -887,7 +887,7 @@ static void MC_dwarf_handle_scope_die(simgrid::mc::ObjectInformation* info, Dwar
     case simgrid::dwarf::FormClass::Address:
       if (dwarf_formaddr(&attr, &high_pc) != 0)
         xbt_die("Could not read address");
-      frame.range.begin() = base + high_pc;
+      frame.range.end() = base + high_pc;
       break;
 
     default: