diff options
| author | Zachary Turner <zturner@google.com> | 2016-11-17 05:14:32 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-11-17 05:14:32 +0000 |
| commit | 0eb31a1d9680c66b61e7bc2719bc763a09565f26 (patch) | |
| tree | 0b3b1e8d9a1779b5c96ecfb71beac9fa3581fe0e /lldb/source/Target/StackFrame.cpp | |
| parent | 8036e0b21a9e62adb7aee9793ce0a90646e37b73 (diff) | |
| download | bcm5719-llvm-0eb31a1d9680c66b61e7bc2719bc763a09565f26.tar.gz bcm5719-llvm-0eb31a1d9680c66b61e7bc2719bc763a09565f26.zip | |
Fix warnings and errors introduced with UUID changes.
llvm-svn: 287208
Diffstat (limited to 'lldb/source/Target/StackFrame.cpp')
| -rw-r--r-- | lldb/source/Target/StackFrame.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp index 3a25210ea93..8daa64984b5 100644 --- a/lldb/source/Target/StackFrame.cpp +++ b/lldb/source/Target/StackFrame.cpp @@ -484,14 +484,16 @@ StackFrame::GetInScopeVariableList(bool get_file_globals, } ValueObjectSP StackFrame::GetValueForVariableExpressionPath( - llvm::StringRef var_expr_cstr, DynamicValueType use_dynamic, - uint32_t options, VariableSP &var_sp, Error &error) { + llvm::StringRef var_expr, DynamicValueType use_dynamic, uint32_t options, + VariableSP &var_sp, Error &error) { + llvm::StringRef original_var_expr = var_expr; // We can't fetch variable information for a history stack frame. if (m_is_history_frame) return ValueObjectSP(); - if (var_expr_cstr.empty()) { - error.SetErrorStringWithFormat("invalid variable path '%s'", var_expr_cstr); + if (var_expr.empty()) { + error.SetErrorStringWithFormat("invalid variable path '%s'", + var_expr.str().c_str()); return ValueObjectSP(); } @@ -517,7 +519,6 @@ ValueObjectSP StackFrame::GetValueForVariableExpressionPath( return ValueObjectSP(); // If first character is a '*', then show pointer contents - llvm::StringRef var_expr = var_expr_cstr; std::string var_expr_storage; if (var_expr[0] == '*') { deref = true; @@ -688,7 +689,8 @@ ValueObjectSP StackFrame::GetValueForVariableExpressionPath( } else { error.SetErrorStringWithFormat( "incomplete expression path after \"%s\" in \"%s\"", - var_expr_path_strm.GetData(), var_expr_cstr); + var_expr_path_strm.GetData(), + original_var_expr.str().c_str()); } } return ValueObjectSP(); |

