]> git.sur5r.net Git - openocd/commit
gdb_server: run control fixes for vCont
authorTomas Vanek <vanekt@fbl.cz>
Fri, 23 Feb 2018 18:27:28 +0000 (19:27 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 27 Feb 2018 11:19:10 +0000 (11:19 +0000)
commitbae76053dc515252dc5c8235b9a848e461080c66
tree46f0cf0b04eb9cf21cf06fc0bbba1bc407153f8f
parent1a3cbbf3a5e3432aeab52d7e5f1ff83f71dca929
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>
src/server/gdb_server.c
src/target/aarch64.c
src/target/startup.tcl