rungdbserver 473 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. set -eu
  3. . common
  4. set -- ${cli_rungdbserver:-} "$@"
  5. while getopts a:g OPT; do
  6. case "$OPT" in
  7. a)
  8. arch="$OPTARG"
  9. ;;
  10. g)
  11. gem5=true
  12. ;;
  13. esac
  14. done
  15. shift "$(($OPTIND - 1))"
  16. executable="$1"
  17. set_common_vars "$arch" "$gem5"
  18. "${host_dir}/usr/bin/${arch}-linux-gdb" \
  19. -q \
  20. -ex "set sysroot ${buildroot_out_dir}/staging" \
  21. -ex 'target remote localhost:45455' \
  22. -ex 'tb main' \
  23. -ex 'c' \
  24. "${build_dir}/${executable}" \
  25. ;