forked from auracaster/openocd
rtos: remove display_str member
This patch removes the display_str member in the thread_detail struct. This member was not being used and provides no additional benefit over the thread_name_str and extra_info_str members. This change is made in preparation of support for the qXfer:threads:read packet, which will modernize how thread information is shared with GDB. Change-Id: I1f8bc6325e6aa790e02ea6caee9d6f44c5fedf36 Signed-off-by: Steven Stallion <stallion@squareup.com> Reviewed-on: http://openocd.zylin.com/3558 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
committed by
Andreas Fritiofson
parent
4c670b9d64
commit
f4dfa3b0d0
@@ -221,7 +221,6 @@ static int FreeRTOS_update_threads(struct rtos *rtos)
|
||||
}
|
||||
rtos->thread_details->threadid = 1;
|
||||
rtos->thread_details->exists = true;
|
||||
rtos->thread_details->display_str = NULL;
|
||||
rtos->thread_details->extra_info_str = NULL;
|
||||
rtos->thread_details->thread_name_str = malloc(sizeof(tmp_str));
|
||||
strcpy(rtos->thread_details->thread_name_str, tmp_str);
|
||||
@@ -360,7 +359,6 @@ static int FreeRTOS_update_threads(struct rtos *rtos)
|
||||
rtos->thread_details[tasks_found].thread_name_str =
|
||||
malloc(strlen(tmp_str)+1);
|
||||
strcpy(rtos->thread_details[tasks_found].thread_name_str, tmp_str);
|
||||
rtos->thread_details[tasks_found].display_str = NULL;
|
||||
rtos->thread_details[tasks_found].exists = true;
|
||||
|
||||
if (rtos->thread_details[tasks_found].threadid == rtos->current_thread) {
|
||||
|
||||
Reference in New Issue
Block a user