[Lldb-commits] [lldb] r205555 - Avoid crash if symbol returns a null name

Greg Clayton gclayton at apple.com
Thu Apr 3 13:01:11 PDT 2014

It is possible to get a NULL name. The ConstString class has the following:

    const char *
    AsCString(const char *value_if_empty = NULL) const

Since no value was provided, it will return NULL if empty, so your fix is good.

On Apr 3, 2014, at 12:44 PM, Ed Maste <emaste at freebsd.org> wrote:

> On 3 April 2014 15:27, Ed Maste <emaste at freebsd.org> wrote:
>> Author: emaste
>> Date: Thu Apr  3 14:27:39 2014
>> New Revision: 205555
>> URL: http://llvm.org/viewvc/llvm-project?rev=205555&view=rev
>> Log:
>> Avoid crash if symbol returns a null name
> I'm not sure if it should be possible for LLDB to have a symbol with a
> null name; if not, I'll replace this with an assert and track down
> where it originated.
> This crash started happening on FreeBSD after r205450, when the test
> executes "frame var -d run-target --ptr-depth=2 --show-types
> anotherA.m_client_A"
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

More information about the lldb-commits mailing list