aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/ThreadX.c
diff options
context:
space:
mode:
authorSteven Stallion <stallion@squareup.com>2016-07-20 14:05:12 -0500
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-08-14 01:38:12 +0100
commitf4dfa3b0d0abac55b7c60d333018d53d09b21bef (patch)
tree90a5990e3f85f7b4ee6076940eb4a8ac1845dd1d /src/rtos/ThreadX.c
parent4c670b9d6498b944c70e5a314c3057202fd89ff6 (diff)
downloadriscv-openocd-f4dfa3b0d0abac55b7c60d333018d53d09b21bef.zip
riscv-openocd-f4dfa3b0d0abac55b7c60d333018d53d09b21bef.tar.gz
riscv-openocd-f4dfa3b0d0abac55b7c60d333018d53d09b21bef.tar.bz2
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>
Diffstat (limited to 'src/rtos/ThreadX.c')
-rw-r--r--src/rtos/ThreadX.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/rtos/ThreadX.c b/src/rtos/ThreadX.c
index 229bf72..8267b9f 100644
--- a/src/rtos/ThreadX.c
+++ b/src/rtos/ThreadX.c
@@ -319,7 +319,6 @@ static int ThreadX_update_threads(struct rtos *rtos)
sizeof(struct thread_detail) * thread_list_size);
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);
@@ -414,8 +413,6 @@ static int ThreadX_update_threads(struct rtos *rtos)
rtos->thread_details[tasks_found].exists = true;
- rtos->thread_details[tasks_found].display_str = NULL;
-
tasks_found++;
prev_thread_ptr = thread_ptr;
@@ -596,8 +593,6 @@ static int ThreadX_get_thread_detail(struct rtos *rtos,
detail->exists = true;
- detail->display_str = NULL;
-
return 0;
}