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
added platform for ns3 wifi example
[simgrid.git]
/
tools
/
generate-dwarf-functions
diff --git
a/tools/generate-dwarf-functions
b/tools/generate-dwarf-functions
index 301c2b5492e6e10aad5dd91505fddcc62d26e8d6..959ba55df6b02eeb16ebf595c16ba6a61e42aa3f 100755
(executable)
--- a/
tools/generate-dwarf-functions
+++ b/
tools/generate-dwarf-functions
@@
-22,7
+22,7
@@
$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"},/')
};
}
};
}
@@
-50,7
+50,7
@@
$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"},/')
};
}
};
}