[all-commits] [llvm/llvm-project] 44a114: [lldb/Dataformatters] Adapt C++ std::string datafo...
Med Ismail Bennani via All-commits
all-commits at lists.llvm.org
Tue Jun 28 15:34:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 44a114fec715bd9c9b725c939a09de4b746108e3
https://github.com/llvm/llvm-project/commit/44a114fec715bd9c9b725c939a09de4b746108e3
Author: Med Ismail Bennani <medismail.bennani at gmail.com>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
Log Message:
-----------
[lldb/Dataformatters] Adapt C++ std::string dataformatter for D128285
This patch changes the C++ `std::string` dataformatter to reflect
internal layout changes following D128285.
Now, in short-mode strings, in order to access the `__size_` and
`__is_long_` attributes, we need to access a packed anonymous struct,
which introduces another indirection.
We need to do the same in order to access the `__cap_` field for
long-mode strings.
This should fix the various test failures that are happening on
GreenDragon:
https://green.lab.llvm.org/green/job/lldb-cmake/44918/
rdar://96010248
Differential Revision: https://reviews.llvm.org/D128694
Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>
More information about the All-commits
mailing list