Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
67d638ef5e47548b1526a0e39bc2d3edadaf4cf5
[simgrid.git] / src / mc / Frame.hpp
1 /* Copyright (c) 2007-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_MC_FRAME_HPP
8 #define SIMGRID_MC_FRAME_HPP
9
10 #include <string>
11
12 #include <xbt/base.h>
13
14 #include "mc_forward.h"
15 #include "mc/LocationList.hpp"
16 #include "mc/Variable.hpp"
17 #include "mc/Frame.hpp"
18
19 namespace simgrid {
20 namespace mc {
21
22 class Frame {
23 public:
24   Frame();
25
26   int tag;
27   std::string name;
28   void *low_pc;
29   void *high_pc;
30   simgrid::dwarf::LocationList frame_base_location;
31   std::vector<Variable> variables;
32   unsigned long int id; /* DWARF offset of the subprogram */
33   std::vector<Frame> scopes;
34   unsigned long int abstract_origin_id;
35   simgrid::mc::ObjectInformation* object_info;
36
37   void* frame_base(unw_cursor_t& unw_cursor) const;
38 };
39
40 inline
41 Frame::Frame()
42 {
43   this->tag = 0;
44   this->low_pc = nullptr;
45   this->high_pc = nullptr;
46   this->id = 0;
47   this->abstract_origin_id = 0;
48   this->object_info = nullptr;
49 }
50
51 }
52 }
53
54 #endif