From 1d6a6f3b0c710ccd6558644d195cf939c4995d84 Mon Sep 17 00:00:00 2001 From: Tatyana Krasnukha Date: Sat, 20 Feb 2021 01:21:05 +0300 Subject: [PATCH] [lldb/Target] Remove outdated code Arg0 callback does work. --- lldb/include/lldb/Target/Target.h | 2 +- lldb/source/Target/Target.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lldb/include/lldb/Target/Target.h b/lldb/include/lldb/Target/Target.h index f35f4e9..737efaf 100644 --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -211,7 +211,7 @@ public: void SetDisplayRecognizedArguments(bool b); - const ProcessLaunchInfo &GetProcessLaunchInfo(); + const ProcessLaunchInfo &GetProcessLaunchInfo() const; void SetProcessLaunchInfo(const ProcessLaunchInfo &launch_info); diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 6cf9d54..98f63a8 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -4196,8 +4196,7 @@ void TargetProperties::SetNonStopModeEnabled(bool b) { m_collection_sp->SetPropertyAtIndexAsBoolean(nullptr, idx, b); } -const ProcessLaunchInfo &TargetProperties::GetProcessLaunchInfo() { - m_launch_info.SetArg0(GetArg0()); // FIXME: Arg0 callback doesn't work +const ProcessLaunchInfo &TargetProperties::GetProcessLaunchInfo() const { return m_launch_info; } -- 2.7.4