Skip to content

Commit db9ff13

Browse files
committed
[lldb] Log Swift object description messages to expr channel
1 parent 50a89bc commit db9ff13

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "lldb/Symbol/Function.h"
3636
#include "lldb/Symbol/VariableList.h"
3737
#include "lldb/Target/RegisterContext.h"
38+
#include "lldb/Utility/LLDBLog.h"
3839
#include "lldb/Utility/Log.h"
3940
#include "lldb/Utility/OptionParsing.h"
4041
#include "lldb/Utility/Timer.h"
@@ -924,7 +925,7 @@ void SwiftLanguageRuntimeImpl::ModulesDidLoad(const ModuleList &module_list) {
924925

925926
std::string
926927
SwiftLanguageRuntimeImpl::GetObjectDescriptionExpr_Result(ValueObject &object) {
927-
Log *log(GetLog(LLDBLog::DataFormatters));
928+
Log *log(GetLog(LLDBLog::DataFormatters | LLDBLog::Expressions));
928929
std::string expr_string
929930
= llvm::formatv("Swift._DebuggerSupport.stringForPrintObject({0})",
930931
object.GetName().GetCString()).str();
@@ -936,7 +937,7 @@ SwiftLanguageRuntimeImpl::GetObjectDescriptionExpr_Result(ValueObject &object) {
936937

937938
std::string
938939
SwiftLanguageRuntimeImpl::GetObjectDescriptionExpr_Ref(ValueObject &object) {
939-
Log *log(GetLog(LLDBLog::DataFormatters));
940+
Log *log(GetLog(LLDBLog::DataFormatters | LLDBLog::Expressions));
940941

941942
StreamString expr_string;
942943
std::string expr_str
@@ -960,7 +961,7 @@ std::string
960961
SwiftLanguageRuntimeImpl::GetObjectDescriptionExpr_Copy(ValueObject &object,
961962
lldb::addr_t &copy_location)
962963
{
963-
Log *log(GetLog(LLDBLog::DataFormatters));
964+
Log *log(GetLog(LLDBLog::DataFormatters | LLDBLog::Expressions));
964965

965966
ValueObjectSP static_sp(object.GetStaticValue());
966967

@@ -1028,7 +1029,7 @@ SwiftLanguageRuntimeImpl::RunObjectDescriptionExpr(ValueObject &object,
10281029
std::string &expr_string,
10291030
Stream &result)
10301031
{
1031-
Log *log(GetLog(LLDBLog::DataFormatters));
1032+
Log *log(GetLog(LLDBLog::DataFormatters | LLDBLog::Expressions));
10321033
ValueObjectSP result_sp;
10331034
EvaluateExpressionOptions eval_options;
10341035
eval_options.SetLanguage(lldb::eLanguageTypeSwift);

0 commit comments

Comments
 (0)