1 /* Copyright (c) 2008-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #if !defined(SIMGRID_MC_DWARF_HPP)
8 #define SIMGRID_MC_DWARF_HPP
14 #include <xbt/sysdep.h>
16 #define DW_LANG_Objc DW_LANG_ObjC /* fix spelling error in older dwarf.h */
19 #include "mc/Variable.hpp"
20 #include "mc/mc_memory_map.h"
22 XBT_PRIVATE std::shared_ptr<simgrid::mc::ObjectInformation> MC_find_object_info(
23 std::vector<simgrid::mc::VmMap> const& maps, const char* name, int executable);
24 XBT_PRIVATE void MC_post_process_object_info(simgrid::mc::Process* process, simgrid::mc::ObjectInformation* info);
26 XBT_PRIVATE void MC_dwarf_get_variables(simgrid::mc::ObjectInformation* info);
27 XBT_PRIVATE void MC_dwarf_get_variables_libdw(simgrid::mc::ObjectInformation* info);
29 XBT_PRIVATE const char* MC_dwarf_attrname(int attr);
30 XBT_PRIVATE const char* MC_dwarf_tagname(int tag);
32 XBT_PRIVATE void* mc_member_resolve(
33 const void* base, simgrid::mc::Type* type, simgrid::mc::Member* member,
34 simgrid::mc::AddressSpace* snapshot, int process_index);