gdb_server: fake step if thread is not current rtos thread
commit935f0c5cc28a3a2cc627ff25b30d65d8d82ad8c4
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Mon, 5 Mar 2018 13:50:51 +0000 (5 14:50 +0100)
committerMatthias Welwarsky <matthias@welwarsky.de>
Fri, 16 Mar 2018 08:57:20 +0000 (16 08:57 +0000)
tree1526297594fb1ccc7aee4b451c0bdecdc4856c55
parentcbf7889873c16e80109ee7d46995a0adf08af84c
gdb_server: fake step if thread is not current rtos thread

gdb assumes that a rtos can make any thread active at will in response
to a 'Hg' packet. It further assumes that it needs to step-over after
setting a breakpoint on frame #0 of any non-current thread. Both
assumptions are not valid for an actual rtos. We fake the step-over to
not trigger an internal error in gdb. See
https://sourceware.org/bugzilla/show_bug.cgi?id=22925 for details.

Change-Id: Ida60cd134033c1d58ada77b87fe664a58f61e2c0
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/4448
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/server/gdb_server.c