Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanups: there is no random in the platforms since a while
[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 "src/mc/mc_forward.h"
15 #include "src/mc/LocationList.hpp"
16 #include "src/mc/Variable.hpp"
17 #include "src/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   void remove_variable(char* name);
39 };
40
41 inline
42 Frame::Frame()
43 {
44   this->tag = 0;
45   this->low_pc = nullptr;
46   this->high_pc = nullptr;
47   this->id = 0;
48   this->abstract_origin_id = 0;
49   this->object_info = nullptr;
50 }
51
52 }
53 }
54
55 #endif