[Lldb-commits] [lldb] Summarize std::string's when created from data. (PR #89110)

via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 24 12:18:27 PDT 2024


jimingham wrote:

> @jimingham
> 
> What should we do if the child address type is File? I don't know how that could ever happen, and should we support it? Because currently we didn't support summarizing host or file.

It doesn't look like C++ allows you to make `constexpr` std::strings, so for now I don't think there's a way to put constructed std::string's in the DATA segments of object files.  But if that were possible, handling them shouldn't be any different from reading std::string contents from process memory.

https://github.com/llvm/llvm-project/pull/89110


More information about the lldb-commits mailing list