aboutsummaryrefslogtreecommitdiff
path: root/src/target/startup.tcl
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2018-02-23 19:27:28 +0100
committerTomas Vanek <vanekt@fbl.cz>2018-02-27 11:19:10 +0000
commitbae76053dc515252dc5c8235b9a848e461080c66 (patch)
tree46f0cf0b04eb9cf21cf06fc0bbba1bc407153f8f /src/target/startup.tcl
parent1a3cbbf3a5e3432aeab52d7e5f1ff83f71dca929 (diff)
gdb_server: run control fixes for vCont
this patch contains several changes to run control and state handling together with gdb: - graceful handling of target/gdb desync on resume, step and halt - a default gdb-attach event executing the "halt" command, to meet gdb expectation of target state when it attaches - call target_poll() after Ctrl-C command from gdb - call target_poll() after resume and step through a vCont packet - fix log message forwarding on vCont stepping, also move an aarch64 log message from INFO to DEBUG level to prevent messing up the gdb console during source-line stepping - fix oversight in vCont support that messes up breakpoint handling during stepping Change-Id: Ic79db7c2b798a35283ff752e9b12475486a1f31a Fixes: d301d8b42f0bfe67d76d6f340db6570cc71c876e Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/4432 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target/startup.tcl')
-rw-r--r--src/target/startup.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/startup.tcl b/src/target/startup.tcl
index 9bbc6e32..cf844e1f 100644
--- a/src/target/startup.tcl
+++ b/src/target/startup.tcl
@@ -203,6 +203,7 @@ proc init_target_events {} {
foreach t $targets {
set_default_target_event $t gdb-flash-erase-start "reset init"
set_default_target_event $t gdb-flash-write-end "reset halt"
+ set_default_target_event $t gdb-attach "halt"
}
}