dev@lists.llvm.org
> Subject: Re: [lldb-dev] "error: summary string parsing error" on Fedora 30
>
>
>
> > On Jul 22, 2019, at 1:53 PM, Bob Eastbrook
> wrote:
> >
> > On Mon, Jul 22, 2019 at 1:19 PM Greg Clayton wrote:
> >
> >>> Apparentl
> On Jul 22, 2019, at 1:53 PM, Bob Eastbrook wrote:
>
> On Mon, Jul 22, 2019 at 1:19 PM Greg Clayton wrote:
>
>>> Apparently the versions which ship with Ubuntu 19.04 and Fedora 30 differ
>>> with respect to this flag.
>>
>> So are you saying "-glldb" is wrong on Fedora but "-fno-limit-debu
On Mon, Jul 22, 2019 at 1:19 PM Greg Clayton wrote:
> > Apparently the versions which ship with Ubuntu 19.04 and Fedora 30 differ
> > with respect to this flag.
>
> So are you saying "-glldb" is wrong on Fedora but "-fno-limit-debug-info"
> works?
On Fedora 30:
-g: no debug info
-glldb: no de
> On Jul 22, 2019, at 1:15 PM, Bob Eastbrook wrote:
>
> On Fri, Jul 19, 2019 at 4:08 PM Greg Clayton wrote:
>
>> Sounds like the compiler omitted the type info for std::string. Try "-glldb"
>> in your compiler flags. This tunes debug info for LLDB. A lot of compilers
>> will try to omit typ
On Fri, Jul 19, 2019 at 4:08 PM Greg Clayton wrote:
> Sounds like the compiler omitted the type info for std::string. Try "-glldb"
> in your compiler flags. This tunes debug info for LLDB. A lot of compilers
> will try to omit types from debug info if the type doesn't originate in the
> curren
Sounds like the compiler omitted the type info for std::string. Try "-glldb" in
your compiler flags. This tunes debug info for LLDB. A lot of compilers will
try to omit types from debug info if the type doesn't originate in the current
executable. std::string would be one of those classes. If th
Thanks for the info. "frame var --raw msg" is empty on my Fedora 30
system, but populated correctly on Ubuntu 19.04. E.g., on Fedora 30:
(lldb) frame var --raw msg
(std::string) msg = {}
I compiled with "clang++ -g main.cpp". Nothing fancy. Installed
Clang with "dnf install clang". Again, no
We have a summary provider for std::string that is built into LLDB that must
not be working with the C++ runtime you are using. The current summary string
that is used is in source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp in
LoadLibStdcppFormatters:
lldb::TypeSummaryImplSP std_string_
With Clang 8.0.0 and libstd++ 9.1.1 on Fedora 30 x86_64, I get this
error from LLDB when trying to see the value of a string:
"error: summary string parsing error"
The code is simply:
std::string msg{"foo bar baz"};
With libcxx 8.0.0, instead of the above error, I simply see "??" when
inspectin