diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-09 08:13:25 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-09 08:15:41 -0800 |
commit | 93a1e9c90c96a9130352bf358d7777f0379ebb48 (patch) | |
tree | 89d1bc0119693917e5a5092c25682f9ccbef5169 /lldb | |
parent | ea9888b8f6f20887647b77ebf5864d647fd2ea44 (diff) | |
download | bcm5719-llvm-93a1e9c90c96a9130352bf358d7777f0379ebb48.tar.gz bcm5719-llvm-93a1e9c90c96a9130352bf358d7777f0379ebb48.zip |
[lldb/SWIG] Add missing '\' in macros again
Making the string conversion operator a macro unintentionally dropped
the backslash before '\n' and '\r' and was therefore incorrectly
stripping 'n' and 'r' from the object description.
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/scripts/macros.swig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/macros.swig b/lldb/scripts/macros.swig index e0756c2f179..0387f27f3cb 100644 --- a/lldb/scripts/macros.swig +++ b/lldb/scripts/macros.swig @@ -6,7 +6,7 @@ $self->GetDescription (stream, Level); const char *desc = stream.GetData(); size_t desc_len = stream.GetSize(); - if (desc_len > 0 && (desc[desc_len-1] == 'n' || desc[desc_len-1] == 'r')) { + if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) { --desc_len; } return std::string(desc, desc_len); @@ -23,7 +23,7 @@ $self->GetDescription (stream); const char *desc = stream.GetData(); size_t desc_len = stream.GetSize(); - if (desc_len > 0 && (desc[desc_len-1] == 'n' || desc[desc_len-1] == 'r')) { + if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) { --desc_len; } return std::string(desc, desc_len); |