Show error message from failed evaluation when doing -var-create
authorIlia K <ki.stfu@gmail.com>
Tue, 12 May 2015 06:15:16 +0000 (06:15 +0000)
committerIlia K <ki.stfu@gmail.com>
Tue, 12 May 2015 06:15:16 +0000 (06:15 +0000)
commitd84713bd8687abc4a70ab25eddb30e22a8731955
treefda0f881f7fc6136c6f0728742b1ea276e6685f2
parent5d3097eeb3e24c803694ac68ee6ae0d214dc6bda
Show error message from failed evaluation when doing -var-create

Summary:
When -var-create fails, we will now show the error message from the failed evaluation if it is available.

Patch from chuckr@microsoft.com

Test Plan: I fixed the MiVarTestCase.test_lldbmi_eval test to expect the new error string. All MI tests passing on OS X.

Reviewers: abidh, ChuckR

Subscribers: greggm, lldb-commits, paulmaybee

Differential Revision: http://reviews.llvm.org/D9691

llvm-svn: 237094
lldb/test/tools/lldb-mi/variable/TestMiVar.py
lldb/tools/lldb-mi/MICmdCmdVar.cpp