Skip to content

Target process not properly created when using --source <file> #113471

@godfriedt

Description

@godfriedt

When selecting a target process and selecting a script to use with lldb <executable> -s <script>, lldb will create a target process with the file descriptors 0u, 1u, and 2u. This means that the input and output operations from the executable cannot be interacted with from the lldb debugging session (scanf will not work). This differs from lldb <executable> where the file descriptors created for the process are 0r, 1w, 2w, allowing functions like scanf to read input from the lldb session.

platform: macOS Sequoia 15.0.1 (24A348)
os: Darwin 24.0.0
kernel: xnu-11215.1.12~1/RELEASE_ARM64_T6020
architecture: arm64
lldb --version: lldb-1600.0.36.3, Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions