summaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2018-01-29 17:54:46 +0300
committerJuergen Gross <jgross@suse.com>2018-01-29 17:54:46 +0300
commitddb9e13af3bba3f8c36ccee0eb9563a82b425c12 (patch)
treeb0ad38578f597063b61a849965dfaaae7927829e /scripts/gdb
parent3a485c2be49dde899e506684bb5f06d5b3f73e82 (diff)
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff (diff)
downloadlinux-ddb9e13af3bba3f8c36ccee0eb9563a82b425c12.tar.xz
Merge branch 'master' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
Diffstat (limited to 'scripts/gdb')
-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):
thread_info_addr = task.address + ia64_task_size
thread_info = thread_info_addr.cast(thread_info_ptr_type)
else:
+ if task.type.fields()[0].type == thread_info_type.get_type():
+ return task['thread_info']
thread_info = task['stack'].cast(thread_info_ptr_type)
return thread_info.dereference()