Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dcba3ce478d35c3acd5babae088a3c1073d59004
[simgrid.git] / src / mc / mc_dwarf.hpp
1 /* Copyright (c) 2008-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #if !defined(SIMGRID_MC_DWARF_HPP)
8 #define SIMGRID_MC_DWARF_HPP
9
10 #include <memory>
11
12 #include <string.h>
13
14 #include <xbt/sysdep.h>
15
16 #define DW_LANG_Objc DW_LANG_ObjC       /* fix spelling error in older dwarf.h */
17 #include <dwarf.h>
18
19 #include "mc/Variable.hpp"
20 #include "mc/mc_memory_map.h"
21
22 namespace simgrid {
23 namespace dwarf {
24
25 XBT_PRIVATE const char* attrname(int attr);
26 XBT_PRIVATE const char* tagname(int tag);
27
28 }
29 }
30
31 XBT_PRIVATE std::shared_ptr<simgrid::mc::ObjectInformation> MC_find_object_info(
32   std::vector<simgrid::mc::VmMap> const& maps, const char* name, int executable);
33 XBT_PRIVATE void MC_post_process_object_info(simgrid::mc::Process* process, simgrid::mc::ObjectInformation* info);
34
35 XBT_PRIVATE void MC_dwarf_get_variables(simgrid::mc::ObjectInformation* info);
36 XBT_PRIVATE void MC_dwarf_get_variables_libdw(simgrid::mc::ObjectInformation* info);
37
38 XBT_PRIVATE void* mc_member_resolve(
39   const void* base, simgrid::mc::Type* type, simgrid::mc::Member* member,
40   simgrid::mc::AddressSpace* snapshot, int process_index);
41
42 #endif