X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8dbe2058fb2e5717d3077dbaf890d3919405697e..2612fdfbd916f71a94054677e484a925aafbeffc:/tools/generate-dwarf-functions diff --git a/tools/generate-dwarf-functions b/tools/generate-dwarf-functions index 8ecc0fa42c..959ba55df6 100755 --- a/tools/generate-dwarf-functions +++ b/tools/generate-dwarf-functions @@ -22,17 +22,17 @@ $HEADER namespace { const std::unordered_map tagname_map = { {0x00, "DW_TAG_invalid"}, -$(cat "$1" | grep DW_TAG_ | sed 's/.*\(DW_TAG_[^ ]*\) = \(0x[0-9a-f]*\).*/ {\2, "\1"},/') +$(grep DW_TAG_ -- "$1" | sed 's/.*\(DW_TAG_[^ ]*\) = \(0x[0-9a-f]*\).*/ {\2, "\1"},/') }; } namespace simgrid { namespace dwarf { -/** \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 * - * \param tag tag code (see the DWARF specification) - * \return name of the tag + * @param tag tag code (see the DWARF specification) + * @return name of the tag */ XBT_PRIVATE const char *tagname(int tag) @@ -50,17 +50,17 @@ $HEADER namespace { const std::unordered_map attrname_map = { -$(cat "$1" | grep DW_AT_ | sed 's/.*\(DW_AT_[^ ]*\) = \(0x[0-9a-f]*\).*/ {\2, "\1"},/') +$(grep DW_AT_ -- "$1" | sed 's/.*\(DW_AT_[^ ]*\) = \(0x[0-9a-f]*\).*/ {\2, "\1"},/') }; } namespace simgrid { namespace dwarf { -/** \brief Get the name of an attribute (DW_AT_*) from its code +/** @brief Get the name of an attribute (DW_AT_*) from its code * - * \param attr attribute code (see the DWARF specification) - * \return name of the attribute + * @param attr attribute code (see the DWARF specification) + * @return name of the attribute */ XBT_PRIVATE const char *attrname(int attr)