]> git.sur5r.net Git - openocd/commitdiff
rtos: return the correct value if the T or H packets are handled
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Wed, 19 Oct 2011 22:25:08 +0000 (00:25 +0200)
committerPeter Stuge <peter@stuge.se>
Thu, 20 Oct 2011 01:45:06 +0000 (01:45 +0000)
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>
src/rtos/rtos.c

index 74e8724e3ffe6e85110ee99c4a65061bc66a1263..8591007c202b8e240c7247c04b77eebffdc08150 100644 (file)
@@ -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, &current_threadid);
                }
                gdb_put_packet(connection, "OK", 2);
+               return ERROR_OK;
        }
 
        return GDB_THREAD_PACKET_NOT_CONSUMED;