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

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


  Branch: refs/heads/users/walter-erquinigo/run
  Home:   https://github.com/llvm/llvm-project
  Commit: be5c3c3adcc148e8e89d743b05d2b22f4be8e6c6
      https://github.com/llvm/llvm-project/commit/be5c3c3adcc148e8e89d743b05d2b22f4be8e6c6
  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 overriding the 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