diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-03-01 18:38:05 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-03-01 18:38:05 +0000 |
commit | f69c7e53822ecb998a5306410642691d5b70fd9b (patch) | |
tree | a01e71a8b0a3bb83132c395bf7f29c5eb6cff29c /llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | |
parent | 7c4f25d2edc30ddb21754bdb772ab53904177ed2 (diff) | |
download | bcm5719-llvm-f69c7e53822ecb998a5306410642691d5b70fd9b.tar.gz bcm5719-llvm-f69c7e53822ecb998a5306410642691d5b70fd9b.zip |
[DebugInfo] Dump CIE augmentation data as a list of hex bytes
CIE augmentation data might contain non-printable characters.
The patch prints the data as a list of hex bytes.
Differential Revision: http://reviews.llvm.org/D17759
llvm-svn: 262361
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index 6d59a8e1d24..3d2b9e9a05e 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -12,6 +12,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallString.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/Casting.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/Dwarf.h" @@ -244,8 +245,12 @@ public: (int32_t)DataAlignmentFactor); OS << format(" Return address column: %d\n", (int32_t)ReturnAddressRegister); - if (!AugmentationData.empty()) - OS << " Augmentation data: " << AugmentationData << "\n"; + if (!AugmentationData.empty()) { + OS << " Augmentation data: "; + for (uint8_t Byte : AugmentationData) + OS << ' ' << hexdigit(Byte >> 4) << hexdigit(Byte & 0xf); + OS << "\n"; + } OS << "\n"; } |