Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d5b31f535ca284ae160db4829901757a8e9153c3
[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 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);
25
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);
28
29 XBT_PRIVATE const char* MC_dwarf_attrname(int attr);
30 XBT_PRIVATE const char* MC_dwarf_tagname(int tag);
31
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);
35
36 #endif