#include <stdint.h>
+#include <vector>
+
#include <libunwind.h>
#include <dwarf.h>
#include <elfutils/libdw.h>
#include "mc_forward.h"
#include "AddressSpace.hpp"
+namespace simgrid {
+namespace mc {
+
+typedef std::vector<Dwarf_Op> DwarfExpression;
+
+}
+}
+
SG_BEGIN_DECL()
/** \brief a DWARF expression with optional validity contraints */
SG_END_DECL()
+namespace simgrid {
+namespace mc {
+
+inline
+int execute(DwarfExpression const& expression, mc_expression_state_t state)
+{
+ return mc_dwarf_execute_expression(
+ expression.size(), expression.data(), state);
+}
+
+}
+}
+
#endif