Document, test and automate gdbserver

This commit is contained in:
Ciro Santilli
2017-08-29 09:50:01 +01:00
parent b134f39588
commit 1d197f35ee
4 changed files with 66 additions and 3 deletions

19
rungdbserver Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
arch='x86_64'
while getopts a:k OPT; do
case "$OPT" in
a)
arch="$OPTARG"
;;
esac
done
shift "$(($OPTIND - 1))"
executable="$1"
buildroot_out_dir="$(pwd)/buildroot/output.${arch}~"
"${buildroot_out_dir}/host/usr/bin/${arch}-linux-gdb" \
-q \
-ex 'target remote localhost:45455' \
-ex 'tb main' \
-ex 'c' \
"${buildroot_out_dir}/build/${executable}" \
;