X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e68d03f1f2c0206497381c7ef3b91bd5d46f1964..a870c2a3d9eb97fa7d7d26926425b1b30fb749b2:/tools/generate-dwarf-functions?ds=sidebyside diff --git a/tools/generate-dwarf-functions b/tools/generate-dwarf-functions index 5091afaec1..984287c1a2 100755 --- 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 < src/mc/mc_dwarf_tagnames.cpp < +#include #include +#include "mc_object_info.h" /** \brief Get the name of a dwarf tag (DW_TAG_*) from its code * * \param tag tag code (see the DWARF specification) * \return name of the tag */ -XBT_INTERNAL +XBT_PRIVATE 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";/') + case DW_TAG_invalid: + return "DW_TAG_invalid"; default: return "DW_TAG_unknown"; } @@ -32,7 +36,7 @@ $(cat "$1" | grep DW_TAG_ | sed 's/.*\(DW_TAG_[^ ]*\) = \(0x[0-9a-f]*\).*/ case EOF cat - > src/mc/mc_dwarf_attrnames.cpp << EOF -/* Copyright (c) 2014-2015. The SimGrid Team. +/* Copyright (c) 2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -43,6 +47,8 @@ cat - > src/mc/mc_dwarf_attrnames.cpp << EOF #include #include +#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)