Commit 3cbed17e authored by Øyvind Harboe's avatar Øyvind Harboe Committed by Øyvind Harboe
Browse files

rtos: fix bug in error handling



checking for != ERROR_FAIL is broken.

Change-Id: Id7085afac653bb9c38d08928227a9ea402d8e6e9
Signed-off-by: default avatarØyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/351


Tested-by: jenkins
Reviewed-by: default avatarMichel JAOUEN <michel.jaouen@stericsson.com>
Reviewed-by: default avatarØyvind Harboe <oyvindharboe@gmail.com>
parent e8b094b8
...@@ -1039,8 +1039,8 @@ static int gdb_get_registers_packet(struct connection *connection, ...@@ -1039,8 +1039,8 @@ static int gdb_get_registers_packet(struct connection *connection,
LOG_DEBUG("-"); LOG_DEBUG("-");
#endif #endif
if ( ( target->rtos != NULL ) && 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; return ERROR_OK;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment