diff options
| author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-05-29 16:48:40 +0000 |
|---|---|---|
| committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-05-29 16:48:40 +0000 |
| commit | ba9614f6430fa1a6a2435972e59cdc0dcc54ad3f (patch) | |
| tree | 0eb842e7e702b85fbe243da674243e44c7ad6278 /lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp | |
| parent | 15cc47ee81a45c62f73d774dfe33f1e1c46e919e (diff) | |
| download | bcm5719-llvm-ba9614f6430fa1a6a2435972e59cdc0dcc54ad3f.tar.gz bcm5719-llvm-ba9614f6430fa1a6a2435972e59cdc0dcc54ad3f.zip | |
Improve handling of print value argument in -stack-list-* commands.
It was reviewed in http://reviews.llvm.org/D10106.
Patch by paulmaybee.
llvm-svn: 238572
Diffstat (limited to 'lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp')
| -rw-r--r-- | lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp index 13abefee0bf..89f0d133906 100644 --- a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp +++ b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp @@ -477,6 +477,13 @@ CMICmnLLDBDebugSessionInfo::MIResponseForVariableInfoInternal(const VariableInfo } if (veVarInfoFormat != eVariableInfoFormat_NoValues) { + miValueTuple.Add(miValueResultName); // name + if (veVarInfoFormat == eVariableInfoFormat_SimpleValues) + { + const CMICmnMIValueConst miValueConst3(value.GetTypeName()); + const CMICmnMIValueResult miValueResult3("type", miValueConst3); + miValueTuple.Add(miValueResult3); + } const MIuint nChildren = value.GetNumChildren(); const bool bIsPointerType = value.GetType().IsPointerType(); if (nChildren == 0 || // no children @@ -488,12 +495,11 @@ CMICmnLLDBDebugSessionInfo::MIResponseForVariableInfoInternal(const VariableInfo { const CMICmnMIValueConst miValueConst2(strValue.Escape().AddSlashes()); const CMICmnMIValueResult miValueResult2("value", miValueConst2); - miValueTuple.Add(miValueResultName); // name miValueTuple.Add(miValueResult2); - vwrMiValueList.Add(miValueTuple); - continue; } } + vwrMiValueList.Add(miValueTuple); + continue; } if (vbMarkArgs) |

