[all-commits] [llvm/llvm-project] ca8faf: [lldb] Respect empty arguments in target.run-args

Alex via All-commits all-commits at lists.llvm.org
Tue Mar 7 11:29:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca8faf8f465962e5c39d145a0e2236648cbcc27d
      https://github.com/llvm/llvm-project/commit/ca8faf8f465962e5c39d145a0e2236648cbcc27d
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M lldb/source/Host/common/ProcessLaunchInfo.cpp
    M lldb/source/Interpreter/OptionValueArgs.cpp
    A lldb/test/Shell/Driver/Inputs/dumpargs.c
    A lldb/test/Shell/Driver/TestEmptyArgument.test

  Log Message:
  -----------
  [lldb] Respect empty arguments in target.run-args

Currently empty arguments are not respected. They are silently dropped
in two places: (1) when extracting them from the target.run-args
setting and (2) when constructing the lldb-argdumper invocation.

(1) is actually a regression from a few years ago. We did not always
drop empty arguments. See 31d97a5c8ab78c619deada0cdb1fcf64021d25dd.

rdar://106279228

Differential Revision: https://reviews.llvm.org/D145450




More information about the All-commits mailing list