Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Rename PerPageCopy to ChunkedData (and move in its own files)
[simgrid.git] / src / mc / Frame.hpp
index bdbbbca..67d638e 100644 (file)
@@ -9,8 +9,12 @@
 
 #include <string>
 
+#include <xbt/base.h>
+
 #include "mc_forward.h"
-#include "mc_location.h"
+#include "mc/LocationList.hpp"
+#include "mc/Variable.hpp"
+#include "mc/Frame.hpp"
 
 namespace simgrid {
 namespace mc {
@@ -23,14 +27,27 @@ public:
   std::string name;
   void *low_pc;
   void *high_pc;
-  simgrid::mc::LocationList frame_base;
+  simgrid::dwarf::LocationList frame_base_location;
   std::vector<Variable> variables;
   unsigned long int id; /* DWARF offset of the subprogram */
   std::vector<Frame> scopes;
   unsigned long int abstract_origin_id;
   simgrid::mc::ObjectInformation* object_info;
+
+  void* frame_base(unw_cursor_t& unw_cursor) const;
 };
 
+inline
+Frame::Frame()
+{
+  this->tag = 0;
+  this->low_pc = nullptr;
+  this->high_pc = nullptr;
+  this->id = 0;
+  this->abstract_origin_id = 0;
+  this->object_info = nullptr;
+}
+
 }
 }