diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2012-01-07 09:55:54 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvindharboe@gmail.com> | 2012-01-09 08:58:24 +0000 |
commit | 3cbed17e18b1d8611de49325084578260825db73 (patch) | |
tree | 7764ec638e0d3b62677d3e877f2458204cc840b7 /src | |
parent | e8b094b846c2f16d2a5b682be35dcb3a45e7fee1 (diff) | |
download | riscv-openocd-3cbed17e18b1d8611de49325084578260825db73.zip riscv-openocd-3cbed17e18b1d8611de49325084578260825db73.tar.gz riscv-openocd-3cbed17e18b1d8611de49325084578260825db73.tar.bz2 |
rtos: fix bug in error handling
checking for != ERROR_FAIL is broken.
Change-Id: Id7085afac653bb9c38d08928227a9ea402d8e6e9
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/351
Tested-by: jenkins
Reviewed-by: Michel JAOUEN <michel.jaouen@stericsson.com>
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/server/gdb_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 537513a..abec138 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -1039,8 +1039,8 @@ static int gdb_get_registers_packet(struct connection *connection, LOG_DEBUG("-"); #endif - if ( ( target->rtos != NULL ) && - ( ERROR_FAIL != rtos_get_gdb_reg_list( connection, ®_list, ®_list_size) ) ) + if ((target->rtos != NULL) && + (ERROR_OK == rtos_get_gdb_reg_list(connection, ®_list, ®_list_size))) { return ERROR_OK; } |