Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] OOify LocationLists, Location
[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 XBT_PRIVATE void* resolve_member(
29   const void* base, simgrid::mc::Type* type, simgrid::mc::Member* member,
30   simgrid::mc::AddressSpace* snapshot, int process_index);
31
32 XBT_PRIVATE
33 int dwarf_register_to_libunwind(int dwarf_register);
34
35 }
36 }
37
38 #endif