From e952728f88c8b0e0208dc991dd9a04fe8c211cfb Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Tue, 5 Nov 2024 13:26:59 -0500 Subject: [LLDB] Retry Add a target.launch-working-dir setting This retries the PR 113521 skipping a test in a remote environment. --- lldb/source/Target/Target.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lldb/source/Target/Target.cpp') diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 8cd3fa8af6ba..242d2eaec2a1 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -4471,6 +4471,11 @@ void TargetProperties::SetDisableSTDIO(bool b) { const uint32_t idx = ePropertyDisableSTDIO; SetPropertyAtIndex(idx, b); } +llvm::StringRef TargetProperties::GetLaunchWorkingDirectory() const { + const uint32_t idx = ePropertyLaunchWorkingDir; + return GetPropertyAtIndexAs( + idx, g_target_properties[idx].default_cstr_value); +} const char *TargetProperties::GetDisassemblyFlavor() const { const uint32_t idx = ePropertyDisassemblyFlavor; -- cgit v1.2.3