aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/gdb/linux/tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py
index 1bf949c43b76..f6ab3ccf698f 100644
--- a/scripts/gdb/linux/tasks.py
+++ b/scripts/gdb/linux/tasks.py
@@ -96,6 +96,8 @@ def get_thread_info(task):
96 thread_info_addr = task.address + ia64_task_size 96 thread_info_addr = task.address + ia64_task_size
97 thread_info = thread_info_addr.cast(thread_info_ptr_type) 97 thread_info = thread_info_addr.cast(thread_info_ptr_type)
98 else: 98 else:
99 if task.type.fields()[0].type == thread_info_type.get_type():
100 return task['thread_info']
99 thread_info = task['stack'].cast(thread_info_ptr_type) 101 thread_info = task['stack'].cast(thread_info_ptr_type)
100 return thread_info.dereference() 102 return thread_info.dereference()
101 103