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
mc: move some files related to ELF, DWARF or unwind reading into their own directory
[simgrid.git]
/
src
/
mc
/
inspect
/
mc_dwarf_attrnames.cpp
diff --git
a/src/mc/mc_dwarf_attrnames.cpp
b/src/mc/inspect/mc_dwarf_attrnames.cpp
similarity index 98%
rename from
src/mc/mc_dwarf_attrnames.cpp
rename to
src/mc/inspect/mc_dwarf_attrnames.cpp
index
248a127
..
018d9c2
100644
(file)
--- a/
src/mc/mc_dwarf_attrnames.cpp
+++ b/
src/mc/inspect/mc_dwarf_attrnames.cpp
@@
-158,7
+158,7
@@
const std::unordered_map<int, const char*> attrname_map = {
}
namespace simgrid {
}
namespace simgrid {
-namespace dwarf
{
+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
*
@@
-166,11
+166,11
@@
namespace dwarf {
* @return name of the attribute
*/
XBT_PRIVATE
* @return name of the attribute
*/
XBT_PRIVATE
-const char
*
attrname(int attr)
+const char
*
attrname(int attr)
{
auto name = attrname_map.find(attr);
return name == attrname_map.end() ? "DW_AT_unknown" : name->second;
}
{
auto name = attrname_map.find(attr);
return name == attrname_map.end() ? "DW_AT_unknown" : name->second;
}
-}
-}
+}
// namespace dwarf
+}
// namespace simgrid