From f613369f61daeaee51b04af90dedc5d70f87176c Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 11 Jan 2016 22:59:17 +0100 Subject: [PATCH] Revert "Corrected debug return value" This reverts commit a087f1408ddba2581823cca05b3c851591f13fb0. --- src/debug.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/debug.cc b/src/debug.cc index 40edcf3..25003ab 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -393,9 +393,7 @@ std::string Debug::get_return_value(const std::string &function_name, const boos if(line_entry.IsValid()) { lldb::SBStream stream; line_entry.GetFileSpec().GetDescription(stream); - auto pos=last_function_name.find('['); - if(pos==std::string::npos) - pos=last_function_name.find('('); + auto pos=last_function_name.find('('); if(pos!=std::string::npos && last_function_name.substr(0, pos)==function_name && boost::filesystem::path(stream.GetData())==file_path) { lldb::SBStream stream; thread_return_value.GetDescription(stream);