This is an automated email from Gerrit.

?yvind Harboe ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/351

-- gerrit

commit cef7837dca63cbe503fb2aa918806f5696cfa262
Author: Øyvind Harboe <[email protected]>
Date:   Sat Jan 7 09:55:54 2012 +0100

    rtos: fix bug in error handling
    
    checking for != ERROR_FAIL is broken.
    
    Change-Id: Id7085afac653bb9c38d08928227a9ea402d8e6e9
    Signed-off-by: Øyvind Harboe <[email protected]>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 537513a..244e3ea 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1040,7 +1040,7 @@ static int gdb_get_registers_packet(struct connection 
*connection,
 #endif
 
        if ( ( target->rtos != NULL ) &&
-                ( ERROR_FAIL != rtos_get_gdb_reg_list( connection, &reg_list, 
&reg_list_size) ) )
+                ( ERROR_OK == rtos_get_gdb_reg_list( connection, &reg_list, 
&reg_list_size) ) )
        {
                return ERROR_OK;
        }

-- 

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to