Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdb: require gdb-multiarch for -g #21

Merged
merged 1 commit into from
Jun 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Optional parameters:
Invokes 'set -x' for debugging the script.

-g | --gdb:
Add '-s -S' to the QEMU invocation to allow debugging via GDB.
Add '-s -S' to the QEMU invocation to allow debugging via GDB (will invoke
`$GDB_BIN` env var else `gdb-multiarch`).

-h | --help:
Prints this message then exits.
Expand Down
2 changes: 1 addition & 1 deletion boot-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function invoke_qemu() {
-s -S &
QEMU_PID=$!
green "Starting GDB..."
gdb "${KBUILD_DIR}/vmlinux" -ex "target remote :1234"
"${GDB_BIN:-gdb-multiarch}" "${KBUILD_DIR}/vmlinux" -ex "target remote :1234"
red "Killing QEMU..."
kill -9 "${QEMU_PID}"
wait "${QEMU_PID}" 2>/dev/null
Expand Down