mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-5667: Fix gdbi and lldb argument passing in bash.
This commit is contained in:
parent
70820402d7
commit
6ab32ff426
9 changed files with 21 additions and 15 deletions
|
@ -27,7 +27,7 @@ add-lldb-init-args() {
|
|||
|
||||
add-lldb-image-and-args() {
|
||||
target_image=$1
|
||||
target_args=$2
|
||||
shift
|
||||
|
||||
if [ -n "$target_image" ]; then
|
||||
if [ -n "$OPT_ARCH" ]; then
|
||||
|
@ -36,8 +36,10 @@ add-lldb-image-and-args() {
|
|||
args+=(-o "target create '$target_image'")
|
||||
fi
|
||||
fi
|
||||
if [ -n "$target_args" ]; then
|
||||
args+=(-o "settings set target.run-args $target_args")
|
||||
if [ "$#" -ne 0 ]; then
|
||||
local qargs
|
||||
printf -v qargs '%q ' "$@"
|
||||
args+=(-o "settings set -- target.run-args $qargs")
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue