diff options
| author | walter erquinigo <walter@modular.com> | 2024-11-05 13:26:59 -0500 |
|---|---|---|
| committer | walter erquinigo <walter@modular.com> | 2024-11-05 13:29:51 -0500 |
| commit | e952728f88c8b0e0208dc991dd9a04fe8c211cfb (patch) | |
| tree | 8707ce23af2df4193797addefba7fce78b3ff324 /lldb/source/Target/Target.cpp | |
| parent | 3cdac0670823e2da58001bc2600d2e74c929ae5b (diff) | |
[LLDB] Retry Add a target.launch-working-dir setting
This retries the PR 113521 skipping a test in a remote environment.
Diffstat (limited to 'lldb/source/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<llvm::StringRef>( + idx, g_target_properties[idx].default_cstr_value); +} const char *TargetProperties::GetDisassemblyFlavor() const { const uint32_t idx = ePropertyDisassemblyFlavor; |
