diff options
author | Anas Nashif <anas.nashif@intel.com> | 2016-02-01 19:42:54 -0500 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:25:30 -0500 |
commit | 54634d6a4302264b2a66d9c2eedf021da78fe246 (patch) | |
tree | 33cc98afb545e6b1d07f96b5d4b943a449fb67ca /scripts/support | |
parent | 3cf1d29d349d8bc67135e77473aa89fbd90072ca (diff) |
add support for debugserver
Change-Id: Ib22d9c06ba7816c3b870973d16e1c25229f31e1f
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'scripts/support')
-rwxr-xr-x[-rw-r--r--] | scripts/support/openocd.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/support/openocd.sh b/scripts/support/openocd.sh index b70fa1e7f..039d9345e 100644..100755 --- a/scripts/support/openocd.sh +++ b/scripts/support/openocd.sh @@ -41,6 +41,15 @@ do_flash() { echo 'Done flashing' } +do_debugserver() { + test_config + test_ports + # start OpenOCD as GDB server + sh -c "${OPENOCD_CMD} -f '${OPENOCD_CONFIG}' \ + -c 'init' \ + -c 'targets' \ + -c 'reset halt'" +} CMD="$1" shift @@ -50,4 +59,7 @@ case "${CMD}" in echo "Flashing Target Device" do_flash "$@" ;; + debugserver) + do_debugserver "$@" + ;; esac |