-/* Copyright (c) 2014. The SimGrid Team.
+/* Copyright (c) 2014-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include "mc_object_info.h"
#include "mc_private.h"
+#include "mc_location.h"
+#include "mc/AddressSpace.hpp"
+#include "mc/Frame.hpp"
+#include "mc/ObjectInformation.hpp"
using simgrid::mc::remote;
*/
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) {