From: Gabriel Corona Date: Mon, 7 Sep 2015 13:08:41 +0000 (+0200) Subject: [mc] Use target preprocessor symbol instead of UNW_TARGET_FOO X-Git-Tag: v3_12~279^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bf449b0e58bfb126f643064489a0c6f63bd33ffd [mc] Use target preprocessor symbol instead of UNW_TARGET_FOO --- diff --git a/src/mc/mc_dwarf_expression.cpp b/src/mc/mc_dwarf_expression.cpp index d4926a2281..c148b44c0a 100644 --- a/src/mc/mc_dwarf_expression.cpp +++ b/src/mc/mc_dwarf_expression.cpp @@ -38,10 +38,10 @@ static int mc_dwarf_push_value(mc_expression_state_t state, Dwarf_Off value) */ static int mc_dwarf_register_to_libunwind(int dwarf_register) { -#if defined(UNW_TARGET_X86_64) +#if defined(__x86_64__) // It seems for this arch, DWARF and libunwind agree in the numbering: return dwarf_register; -#elif defined(UNW_TARGET_X86) +#elif defined(__i386__) // Could't find the authoritative source of information for this. // This is inspired from http://source.winehq.org/source/dlls/dbghelp/cpu_i386.c#L517. switch (dwarf_register) {