A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SMPI] Replay: Use correct buffer (recvbuffer)
[simgrid.git]
/
src
/
mc
/
Frame.hpp
diff --git
a/src/mc/Frame.hpp
b/src/mc/Frame.hpp
index
2d3e6d6
..
663ecf3
100644
(file)
--- a/
src/mc/Frame.hpp
+++ b/
src/mc/Frame.hpp
@@
-8,14
+8,14
@@
#define SIMGRID_MC_FRAME_HPP
#include <string>
#define SIMGRID_MC_FRAME_HPP
#include <string>
+#include <cstdint>
-#include
<xbt/base.h>
-#include
<xbt/range.hpp>
+#include
"xbt/base.h"
+#include
"xbt/range.hpp"
-#include "src/mc/mc_forward.h"
+#include "src/mc/mc_forward.h
pp
"
#include "src/mc/LocationList.hpp"
#include "src/mc/Variable.hpp"
#include "src/mc/LocationList.hpp"
#include "src/mc/Variable.hpp"
-#include "src/mc/Frame.hpp"
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
@@
-25,16
+25,35
@@
class Frame {
public:
Frame();
public:
Frame();
- int tag;
+ /** Kind of scope (DW_TAG_subprogram, DW_TAG_inlined_subroutine, etc.) */
+ int tag = DW_TAG_invalid;
+
+ /** Name of the function (if it is a function) */
std::string name;
std::string name;
+
/** Range of instruction addresses for which this scope is valid */
/** Range of instruction addresses for which this scope is valid */
- simgrid::xbt::range<std::uint64_t> range;
+ simgrid::xbt::Range<std::uint64_t> range;
+
simgrid::dwarf::LocationList frame_base_location;
simgrid::dwarf::LocationList frame_base_location;
+
+ /** List of the variables (sorted by name) */
std::vector<Variable> variables;
std::vector<Variable> variables;
- unsigned long int id; /* DWARF offset of the subprogram */
+
+ /* Unique identifier for this scope (in the object_info)
+ *
+ * This is the global DWARF offset of the DIE. */
+ unsigned long int id = 0;
+
std::vector<Frame> scopes;
std::vector<Frame> scopes;
- unsigned long int abstract_origin_id;
- simgrid::mc::ObjectInformation* object_info;
+
+ /** Value of `DW_AT_abstract_origin`
+ *
+ * For inlined subprograms, this is the ID of the
+ * parent function.
+ */
+ unsigned long int abstract_origin_id = 0;
+
+ simgrid::mc::ObjectInformation* object_info = nullptr;
void* frame_base(unw_cursor_t& unw_cursor) const;
void remove_variable(char* name);
void* frame_base(unw_cursor_t& unw_cursor) const;
void remove_variable(char* name);