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

Walter Erquinigo via All-commits all-commits at lists.llvm.org
Wed Oct 23 21:40:29 PDT 2024


  Branch: refs/heads/users/walter-erquinigo/run
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c80e266e53c53393700a3030edfc471137d2fd5
      https://github.com/llvm/llvm-project/commit/4c80e266e53c53393700a3030edfc471137d2fd5
  Author: walter erquinigo <walter at modular.com>
  Date:   2024-10-24 (Thu, 24 Oct 2024)

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

  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