This is an automated email from Gerrit.

Matthias Blaicher (matth...@blaicher.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/917

-- gerrit

commit 13f5961a118d796f23d388acbdaf0bbe9f9ae206
Author: Matthias Blaicher <matth...@blaicher.com>
Date:   Tue Oct 23 16:53:16 2012 +0200

    [rtos] fix gdb/mi qC command answer
    
    rtos->current_thread is of type int64_t. All other commands alreay
    respect this.
    
    Change-Id: I9951946ff2a09c53cd78c6ab882c80cdd2ab7ac6
    Signed-off-by: Matthias Blaicher <matth...@blaicher.com>

diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 8e2b568..00025ab 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -344,9 +344,9 @@ int rtos_thread_packet(struct connection *connection, char 
*packet, int packet_s
                return ERROR_OK;
        } else if (strstr(packet, "qC")) {
                if (target->rtos != NULL) {
-                       char buffer[15];
+                       char buffer[19];
                        int size;
-                       size = snprintf(buffer, 15, "QC%08X", 
(int)target->rtos->current_thread);
+                       size = snprintf(buffer, 19, "QC%016" PRIx64, 
target->rtos->current_thread);
                        gdb_put_packet(connection, buffer, size);
                } else
                        gdb_put_packet(connection, "QC0", 3);

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to