This is an automated email from Gerrit.

Matthias Welwarsky ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4000

-- gerrit

commit e26f1661f376b394e1ca1f84f3350d39301b743c
Author: Matthias Welwarsky <[email protected]>
Date:   Fri Feb 17 16:18:09 2017 +0100

    gdb_server: update rtos threads on new connection
    
    make sure the RTOS thread database is updated early on a new
    gdb connection.
    
    Change-Id: I4da9ef30f8634263d697116cefc47976cd1970ad
    Signed-off-by: Matthias Welwarsky <[email protected]>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index da44e1c..2c0a242 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -956,9 +956,14 @@ static int gdb_new_connection(struct connection 
*connection)
        breakpoint_clear_target(gdb_service->target);
        watchpoint_clear_target(gdb_service->target);
 
-       /* clean previous rtos session if supported*/
-       if ((gdb_service->target->rtos) && 
(gdb_service->target->rtos->type->clean))
-               gdb_service->target->rtos->type->clean(gdb_service->target);
+       if (gdb_service->target->rtos) {
+               /* clean previous rtos session if supported*/
+               if (gdb_service->target->rtos->type->clean)
+                       
gdb_service->target->rtos->type->clean(gdb_service->target);
+
+               /* update threads */
+               rtos_update_threads(gdb_service->target);
+       }
 
        /* remove the initial ACK from the incoming buffer */
        retval = gdb_get_char(connection, &initial_ack);

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to