Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[travis] detect linux as we should
[simgrid.git] / tools / generate-dwarf-functions
index 38bd20e..2164ff2 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 # Generate files from a given dwarf.h
+# Usage: tools/generate-dwarf-functions /usr/include/dwarf.h
 
 cat - > src/mc/mc_dwarf_tagnames.cpp <<EOF
 /* Copyright (c) 2014. The SimGrid Team.
@@ -11,6 +12,7 @@ cat - > src/mc/mc_dwarf_tagnames.cpp <<EOF
 /* Warning: autogenerated, do not edit! */
 
 #include <dwarf.h>
+#include <elfutils/libdw.h>
 
 #include <xbt/base.h>
 #include "mc_object_info.h"