aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtos/linux.c')
-rw-r--r--src/rtos/linux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c
index 0fc76355..80d84d73 100644
--- a/src/rtos/linux.c
+++ b/src/rtos/linux.c
@@ -226,7 +226,8 @@ static int linux_os_thread_reg_list(struct rtos *rtos,
/*LOG_INFO("thread %lx current on core %x",thread_id,
* target->coreid);*/
retval =
- target_get_gdb_reg_list(target, &reg_list, &reg_list_size);
+ target_get_gdb_reg_list(target, &reg_list, &reg_list_size,
+ REG_CLASS_GENERAL);
if (retval != ERROR_OK)
return retval;
@@ -498,7 +499,7 @@ int get_current(struct target *target, int create)
int retval;
if (target_get_gdb_reg_list(head->target, &reg_list,
- &reg_list_size) != ERROR_OK) {
+ &reg_list_size, REG_CLASS_GENERAL) != ERROR_OK) {
free(buffer);
return ERROR_TARGET_FAILURE;
}