| Issue |
161175
|
| Summary |
[lldb][Linux][AIX] 'Summary Unavailable' when inspecting std::string in LLDB on Linux and AIX
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
DhruvSrivastavaX
|
While debugging C++ programs with LLDB, I'm observing this issue while inspecting std::string objects.
So far I have seen this issue with ppc64le Linux, x86_64 Linux and AIX.
x86_64 Linux:
```
Process 214771 stopped
* thread #1, name = 'test', stop reason = step over
frame #0: 0x0000000000401371 test`main at test.C:13:15
10 Person p("Alice", 30, 1.65);
11 std::string str = "Hello";
12 // ...
-> 13 std::cout << "string " << str << std::endl;
14
15 return 0;
16
(lldb) p str
(std::string) error: summary string parsing error
```
AIX:
```
(lldb) n
Process 27656672 stopped
* thread #1, name = 'test', stop reason = step over
frame #0: 0x0000000100000990 test`main at test.C:13
10 Person p("Alice", 30, 1.65);
11 std::string str = "Hello";
12 // ...
-> 13 std::cout << "string " << str << std::endl;
14
15 return 0;
16
(lldb) p str
(std::__1::string) Summary Unavailable
```
LLDB falls back to the 'summary unavailable' as LLDB's pretty printer is not able to resolve the std::string from the used libc++.
Is this an already known issue on Linux?
Please let me know your plans/suggestions on this, and I can work on a fix with your feedback.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs