diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2011-10-20 00:25:08 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-10-20 01:45:06 +0000 |
commit | 3d2305f2e6a55912d5851c0dbed886d913a4d015 (patch) | |
tree | af6eda39a98519de3d2006b621dfffa77c75e292 | |
parent | 1c1771ef6c4ed8d913146f943a64c0cf16850b59 (diff) |
rtos: return the correct value if the T or H packets are handled
Change-Id: Iea31e20ee4e35c1a9cb7b93424c92b3f38081067
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/38
Tested-by: jenkins
Reviewed-by: Evan Hunter <evan@ozhiker.com>
Reviewed-by: Peter Stuge <peter@stuge.se>
-rw-r--r-- | src/rtos/rtos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 74e8724e..8591007c 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -490,6 +490,7 @@ int gdb_thread_packet(struct connection *connection, char *packet, int packet_si } else { gdb_put_packet(connection, "E01", 3); // thread not found } + return ERROR_OK; } else if ( packet[0] == 'H') // Set current thread ( 'c' for step and continue, 'g' for all other operations ) { @@ -498,6 +499,7 @@ int gdb_thread_packet(struct connection *connection, char *packet, int packet_si sscanf(packet, "Hg%16" SCNx64, ¤t_threadid); } gdb_put_packet(connection, "OK", 2); + return ERROR_OK; } return GDB_THREAD_PACKET_NOT_CONSUMED; |