aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-06-23 10:55:17 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-06-23 11:00:21 -0700
commit85f40fc676df65416568750f328c71758c84264a (patch)
tree0854bf5d8ec521babea1e72c738aef0bab539753 /llvm/lib/Object/ObjectFile.cpp
parent60941f1d28ce17958d1e931711d93b8f629d4ad3 (diff)
downloadllvm-85f40fc676df65416568750f328c71758c84264a.zip
llvm-85f40fc676df65416568750f328c71758c84264a.tar.gz
llvm-85f40fc676df65416568750f328c71758c84264a.tar.bz2
[lldb] Print unprintable characters as unsigned
When specifying the C-string format for dumping memory, we treat unprintable characters as signed. Whether a character is signed or not is implementation defined, but all printable characters are signed. Therefore it's fair to assume that unprintable characters are unsigned. Before this patch, "\xcf\xfa\xed\xfe\f" would be printed as "\xffffffcf\xfffffffa\xffffffed\xfffffffe\f". Now we correctly print the original string. rdar://111126134 Differential revision: https://reviews.llvm.org/D153644
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions