[lldb-dev] Bug in CommandObjectFrameVariable::DoExecute()

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Fri Nov 18 15:55:49 PST 2016


On line 708 of CommandObjectFrame.cpp, I'm looking at this code:

options.SetRootValueObjectName(name_cstr);

This code occurs inside the else block of an if/else.  name_cstr is
declared prior to the if/else block and initialized to nullptr, but is only
ever set to something other than nullptr in the if branch.

So, this code is equivalent to

options.SetRootValueObjectName(nullptr);

Is this intended, and if not how would this bug manifest itself in terms of
incorrect behavior?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20161118/5c899cfd/attachment.html>


More information about the lldb-dev mailing list