From e6a3ac4d7dbf87005bfe09924deffdc0e8cc9210 Mon Sep 17 00:00:00 2001 From: wangyanwen Date: Thu, 20 Feb 2025 17:43:09 +0800 Subject: [PATCH] Revert "gdb_server,rtos: Differentiate rtos_get_gdb_reg failing and not implemented" This reverts commit 15f399691eff62da2039fb01abeb64f567d04bbd. Change-Id: I1002df6b2434b85025727c9583a20e83273e708e --- src/server/gdb_server.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 801ea899b..7dfd0b537 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -1408,13 +1408,8 @@ static int gdb_get_register_packet(struct connection *connection, LOG_DEBUG("-"); #endif - if (target->rtos) { - retval = rtos_get_gdb_reg(connection, reg_num); - if (retval == ERROR_OK) - return ERROR_OK; - if (retval != ERROR_NOT_IMPLEMENTED) - return gdb_error(connection, retval); - } + if ((target->rtos) && (rtos_get_gdb_reg(connection, reg_num) == ERROR_OK)) + return ERROR_OK; retval = target_get_gdb_reg_list_noread(target, ®_list, ®_list_size, REG_CLASS_ALL);