[all-commits] [llvm/llvm-project] a8bec6: [lldb] Fix that empty target.run-args are not actu...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Fri Nov 18 07:49:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8bec6117998cd4a9ff6798381cd0df9c9edb982
https://github.com/llvm/llvm-project/commit/a8bec6117998cd4a9ff6798381cd0df9c9edb982
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2022-11-18 (Fri, 18 Nov 2022)
Changed paths:
M lldb/source/Interpreter/OptionValueProperties.cpp
M lldb/test/API/python_api/target/TestTargetAPI.py
Log Message:
-----------
[lldb] Fix that empty target.run-args are not actually used when launching process
`GetPropertyAtIndexAsArgs` returns true on success and false on failure. Right
now it returns the converted `size_t` returned from `GetArgs` which describes
the number of arguments in the argument list. So for empty argument lists
(`(size_t)0` -> `(bool)false`) this function always fails.
The only observable effect of this seems to be that empty arguments are never
propagated to the internal LaunchInfo for a process. This causes that once any
argument has been added to `target.run-args`, clearing `target.run-args` doesn't
have any effect.
Fixes issue #55568
Reviewed By: JDevlieghere, jingham
Differential Revision: https://reviews.llvm.org/D126057
More information about the All-commits
mailing list