From: Gabriel Corona Date: Fri, 2 Oct 2015 10:04:02 +0000 (+0200) Subject: Revert "[mc] Remove remaining bits of libdw outside of mc_libdw.{h,c}pp" X-Git-Tag: v3_12~62^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/eee53ac79bc015ef6ca6ee17ab02e3b96d13ede5 Revert "[mc] Remove remaining bits of libdw outside of mc_libdw.{h,c}pp" This reverts commit 97cc0fc3eb2ed9773ecd1d612da40bee60727b32. --- diff --git a/src/mc/mc_dwarf_expression.cpp b/src/mc/mc_dwarf_expression.cpp index bf8003730b..5f9e1622cf 100644 --- a/src/mc/mc_dwarf_expression.cpp +++ b/src/mc/mc_dwarf_expression.cpp @@ -4,12 +4,11 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include - #include #include #include +#include #include "mc_dwarf.hpp" #include "mc_private.h" @@ -22,7 +21,7 @@ using simgrid::mc::remote; extern "C" { -static int mc_dwarf_push_value(mc_expression_state_t state, std::uint64_t value) +static int mc_dwarf_push_value(mc_expression_state_t state, Dwarf_Off value) { if (state->stack_size >= MC_EXPRESSION_STACK_SIZE) return MC_EXPRESSION_E_STACK_OVERFLOW; @@ -234,7 +233,7 @@ int mc_dwarf_execute_expression(size_t n, const simgrid::mc::DwarfInstruction* o return MC_EXPRESSION_E_NO_BASE_ADDRESS; if (state->stack_size == MC_EXPRESSION_STACK_SIZE) return MC_EXPRESSION_E_STACK_OVERFLOW; - std::uint64_t addr = (std::uint64_t) (uintptr_t) + Dwarf_Off addr = (Dwarf_Off) (uintptr_t) state->object_info->base_address() + op->number; error = mc_dwarf_push_value(state, addr); break; diff --git a/src/mc/mc_libdw.cpp b/src/mc/mc_libdw.cpp index fcd5adda2e..b27eb9f2ec 100644 --- a/src/mc/mc_libdw.cpp +++ b/src/mc/mc_libdw.cpp @@ -13,7 +13,6 @@ #include #include -#include #include diff --git a/src/mc/mc_location.h b/src/mc/mc_location.h index 455a71630d..289cb739b9 100644 --- a/src/mc/mc_location.h +++ b/src/mc/mc_location.h @@ -13,6 +13,7 @@ #include #include +#include #include #include "mc_base.h"