mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-5667: Fix gdbi and lldb argument passing in bash.
This commit is contained in:
@@ -51,4 +51,4 @@ function launch-lldb() {
|
||||
|
||||
"${args[@]}"
|
||||
}
|
||||
launch-lldb
|
||||
launch-lldb "$@"
|
||||
|
||||
@@ -49,4 +49,4 @@ function launch-lldb() {
|
||||
|
||||
"${args[@]}"
|
||||
}
|
||||
launch-lldb
|
||||
launch-lldb "$@"
|
||||
|
||||
@@ -63,7 +63,7 @@ function do-installation() {
|
||||
"${sshargs[@]}"
|
||||
}
|
||||
|
||||
launch-lldb-ssh
|
||||
launch-lldb-ssh "$@"
|
||||
if check-result-and-prompt-mitigation $? "
|
||||
It appears ghidralldb is missing from the remote system. This can happen if you
|
||||
forgot to install the required package. This can also happen if you installed
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user