Skip to content

Commit e6a3ac4

Browse files
author
wangyanwen
committed
Revert "gdb_server,rtos: Differentiate rtos_get_gdb_reg failing and not implemented"
This reverts commit 15f3996. Change-Id: I1002df6b2434b85025727c9583a20e83273e708e
1 parent feeb15c commit e6a3ac4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/server/gdb_server.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,13 +1408,8 @@ static int gdb_get_register_packet(struct connection *connection,
14081408
LOG_DEBUG("-");
14091409
#endif
14101410

1411-
if (target->rtos) {
1412-
retval = rtos_get_gdb_reg(connection, reg_num);
1413-
if (retval == ERROR_OK)
1414-
return ERROR_OK;
1415-
if (retval != ERROR_NOT_IMPLEMENTED)
1416-
return gdb_error(connection, retval);
1417-
}
1411+
if ((target->rtos) && (rtos_get_gdb_reg(connection, reg_num) == ERROR_OK))
1412+
return ERROR_OK;
14181413

14191414
retval = target_get_gdb_reg_list_noread(target, &reg_list, &reg_list_size,
14201415
REG_CLASS_ALL);

0 commit comments

Comments
 (0)