X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4340c977641036e7aa8ae5dcb69ccb3cac1df3c5..deaddec5dc5d4dda8dc1b9692869970e253facfa:/src/mc/mc_location.h diff --git a/src/mc/mc_location.h b/src/mc/mc_location.h index d6f6fe435d..1bafe6c5bd 100644 --- a/src/mc/mc_location.h +++ b/src/mc/mc_location.h @@ -9,6 +9,8 @@ #include +#include + #include #include #include @@ -18,6 +20,14 @@ #include "mc_forward.h" #include "AddressSpace.hpp" +namespace simgrid { +namespace mc { + +typedef std::vector DwarfExpression; + +} +} + SG_BEGIN_DECL() /** \brief a DWARF expression with optional validity contraints */ @@ -115,4 +125,17 @@ MC_SHOULD_BE_INTERNAL void* mc_find_frame_base( 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