A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[appveyor] disable MSVC for now. mingw-w64 is almost there
[simgrid.git]
/
tools
/
generate-dwarf-functions
diff --git
a/tools/generate-dwarf-functions
b/tools/generate-dwarf-functions
index
2164ff2
..
5091afa
100755
(executable)
--- a/
tools/generate-dwarf-functions
+++ b/
tools/generate-dwarf-functions
@@
-3,7
+3,7
@@
# Usage: tools/generate-dwarf-functions /usr/include/dwarf.h
cat - > src/mc/mc_dwarf_tagnames.cpp <<EOF
# Usage: tools/generate-dwarf-functions /usr/include/dwarf.h
cat - > src/mc/mc_dwarf_tagnames.cpp <<EOF
-/* Copyright (c) 2014. The SimGrid Team.
+/* Copyright (c) 2014
-2015
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-12,10
+12,8
@@
cat - > src/mc/mc_dwarf_tagnames.cpp <<EOF
/* Warning: autogenerated, do not edit! */
#include <dwarf.h>
/* Warning: autogenerated, do not edit! */
#include <dwarf.h>
-#include <elfutils/libdw.h>
#include <xbt/base.h>
#include <xbt/base.h>
-#include "mc_object_info.h"
/** \brief Get the name of a dwarf tag (DW_TAG_*) from its code
*
/** \brief Get the name of a dwarf tag (DW_TAG_*) from its code
*
@@
-27,8
+25,6
@@
const char *MC_dwarf_tagname(int tag)
{
switch (tag) {
$(cat "$1" | grep DW_TAG_ | sed 's/.*\(DW_TAG_[^ ]*\) = \(0x[0-9a-f]*\).*/ case \2: return "\1";/')
{
switch (tag) {
$(cat "$1" | grep DW_TAG_ | sed 's/.*\(DW_TAG_[^ ]*\) = \(0x[0-9a-f]*\).*/ case \2: return "\1";/')
- case DW_TAG_invalid:
- return "DW_TAG_invalid";
default:
return "DW_TAG_unknown";
}
default:
return "DW_TAG_unknown";
}
@@
-36,7
+32,7
@@
$(cat "$1" | grep DW_TAG_ | sed 's/.*\(DW_TAG_[^ ]*\) = \(0x[0-9a-f]*\).*/ case
EOF
cat - > src/mc/mc_dwarf_attrnames.cpp << EOF
EOF
cat - > src/mc/mc_dwarf_attrnames.cpp << EOF
-/* Copyright (c) 2014. The SimGrid Team.
+/* Copyright (c) 2014
-2015
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-47,8
+43,6
@@
cat - > src/mc/mc_dwarf_attrnames.cpp << EOF
#include <xbt/base.h>
#include <dwarf.h>
#include <xbt/base.h>
#include <dwarf.h>
-#include "mc_object_info.h"
-
/** \brief Get the name of an attribute (DW_AT_*) from its code
*
* \param attr attribute code (see the DWARF specification)
/** \brief Get the name of an attribute (DW_AT_*) from its code
*
* \param attr attribute code (see the DWARF specification)