[Lldb-commits] [lldb] r248971 - Use the preferred display language when making a persistent variable from a
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 30 18:24:59 PDT 2015
Hi Sean, would it be possible to add a test for this?
On Wed, Sep 30, 2015 at 5:40 PM Sean Callanan via lldb-commits <
lldb-commits at lists.llvm.org> wrote:
> Author: spyffe
> Date: Wed Sep 30 19:39:03 2015
> New Revision: 248971
>
> URL: http://llvm.org/viewvc/llvm-project?rev=248971&view=rev
> Log:
> Use the preferred display language when making a persistent variable from a
> ValueObject.
>
> Modified:
> lldb/trunk/source/Core/ValueObject.cpp
>
> Modified: lldb/trunk/source/Core/ValueObject.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=248971&r1=248970&r2=248971&view=diff
>
> ==============================================================================
> --- lldb/trunk/source/Core/ValueObject.cpp (original)
> +++ lldb/trunk/source/Core/ValueObject.cpp Wed Sep 30 19:39:03 2015
> @@ -4277,7 +4277,7 @@ ValueObject::Persist ()
> if (!target_sp)
> return nullptr;
>
> - PersistentExpressionState *persistent_state =
> target_sp->GetScratchTypeSystemForLanguage(GetCompilerType().GetMinimumLanguage())->GetPersistentExpressionState();
> + PersistentExpressionState *persistent_state =
> target_sp->GetScratchTypeSystemForLanguage(GetPreferredDisplayLanguage())->GetPersistentExpressionState();
>
> if (!persistent_state)
> return nullptr;
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151001/c87a4662/attachment.html>
More information about the lldb-commits
mailing list