diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-02-05 22:02:15 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-02-06 09:19:04 +0100 |
commit | 397c27097b224532b54bd25605abd0952a209616 (patch) | |
tree | 227a30753e23b6a9bd6e9f1805df8d90b38badab /tools | |
parent | 7a17e41dcfad2a45d3acced2596f7359bbcd1075 (diff) | |
download | systemd-397c27097b224532b54bd25605abd0952a209616.tar.gz |
tools: replace multi-line echo by <<EOF
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/debug-sd-boot.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/debug-sd-boot.sh b/tools/debug-sd-boot.sh index 027d607a49..b087c1d4d5 100755 --- a/tools/debug-sd-boot.sh +++ b/tools/debug-sd-boot.sh @@ -74,9 +74,11 @@ else gdb_script="${3}" fi -echo "file ${binary} +cat >"${gdb_script}" <<EOF +file ${binary} add-symbol-file ${symbols} ${text} -s .data ${data} -set architecture ${arch}" > "${gdb_script}" +set architecture ${arch}" +EOF if [[ -z "${3}" ]]; then gdb -x "${gdb_script}" -ex "target remote :1234" |