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
these are all pretty much allright, actually ...
[simgrid.git]
/
tools
/
generate-dwarf-functions
diff --git
a/tools/generate-dwarf-functions
b/tools/generate-dwarf-functions
index f47bec3c924fa86a80e6b5286e848659c0738356..959ba55df6b02eeb16ebf595c16ba6a61e42aa3f 100755
(executable)
--- a/
tools/generate-dwarf-functions
+++ b/
tools/generate-dwarf-functions
@@
-1,4
+1,4
@@
-#!/
bin/
sh
+#!/
usr/bin/env
sh
# Generate files from a given dwarf.h
# Usage: tools/generate-dwarf-functions /usr/include/dwarf.h
# Generate files from a given dwarf.h
# Usage: tools/generate-dwarf-functions /usr/include/dwarf.h
@@
-22,17
+22,17
@@
$HEADER
namespace {
const std::unordered_map<int, const char*> tagname_map = {
{0x00, "DW_TAG_invalid"},
namespace {
const std::unordered_map<int, const char*> 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 {
};
}
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)
*/
XBT_PRIVATE
const char *tagname(int tag)
@@
-50,17
+50,17
@@
$HEADER
namespace {
const std::unordered_map<int, const char*> attrname_map = {
namespace {
const std::unordered_map<int, const char*> 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 {
};
}
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)
*/
XBT_PRIVATE
const char *attrname(int attr)