openocd/src/server
Antonio Borneo c69b4deae3 gdb_server: fix HW thread status at gdb attach
At gdb attach, the event TARGET_EVENT_GDB_ATTACH is in charge of
halting the target.
For HW thread, rtos_update_threads() should be called after the
event to detect and record the new 'halted' status. Instead it is
called immediately before the event, thus reading the status
before the halt.

Move after the event the call to rtos_update_threads().

Change-Id: Iab3480ea0f5283ed6580f0f6c11200083197d1e9
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5983
Tested-by: jenkins
2020-12-26 15:48:17 +00:00
..
Makefile.am Add initial RTT support 2020-12-02 23:15:52 +00:00
gdb_server.c gdb_server: fix HW thread status at gdb attach 2020-12-26 15:48:17 +00:00
gdb_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
rtt_server.c Add initial RTT support 2020-12-02 23:15:52 +00:00
rtt_server.h Add initial RTT support 2020-12-02 23:15:52 +00:00
server.c server: permit the add_service function to return the created service 2020-11-07 20:49:53 +00:00
server.h server: permit the add_service function to return the created service 2020-11-07 20:49:53 +00:00
server_stubs.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
startup.tcl CVE-2018-5704: Prevent some forms of Cross Protocol Scripting attacks 2019-11-22 18:25:34 +00:00
tcl_server.c server: permit the add_service function to return the created service 2020-11-07 20:49:53 +00:00
tcl_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
telnet_server.c server: permit the add_service function to return the created service 2020-11-07 20:49:53 +00:00
telnet_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00