[all-commits] [llvm/llvm-project] 819380: [LLDB] Add a target.launch-working-dir setting

Walter Erquinigo via All-commits all-commits at lists.llvm.org
Fri Nov 1 14:59:07 PDT 2024


  Branch: refs/heads/users/walter-erquinigo/run
  Home:   https://github.com/llvm/llvm-project
  Commit: 819380f93381eff8200c7eb9c55372f9a840c379
      https://github.com/llvm/llvm-project/commit/819380f93381eff8200c7eb9c55372f9a840c379
  Author: walter erquinigo <walter at modular.com>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    M lldb/include/lldb/Target/Target.h
    M lldb/source/Commands/CommandObjectProcess.cpp
    M lldb/source/Commands/Options.td
    M lldb/source/Target/Target.cpp
    M lldb/source/Target/TargetProperties.td
    M lldb/test/API/commands/process/launch/TestProcessLaunch.py
    M llvm/docs/ReleaseNotes.md

  Log Message:
  -----------
  [LLDB] Add a target.launch-working-dir setting

Internally we use bazel in a way in which it can drop you in a LLDB session with the target launched in a particular cwd, which is needed for things to work. We've been making this automation work via `process launch -w`. However, if later the user wants to restart the process with `r`, then they end up using a different cwd for relaunching the process.
As a way to fix this, I'm adding a target-level setting that allows setting a default cwd used for launching the process without needing the user to specify it manually.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list