summaryrefslogtreecommitdiffstats
path: root/scripts/gdb
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-11-24 23:09:08 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2023-12-03 18:51:48 +0900
commit0df8e97085946dd79c06720678a845778b6d6bf8 (patch)
tree516e1eee9712f2a64e4da7a9c9fc1fd5d8aade7b /scripts/gdb
parent92ef432f027cffe0ff91ff2cbe9258d89ca53968 (diff)
downloadlinux-0df8e97085946dd79c06720678a845778b6d6bf8.tar.gz
linux-0df8e97085946dd79c06720678a845778b6d6bf8.tar.bz2
linux-0df8e97085946dd79c06720678a845778b6d6bf8.zip
scripts: clean up IA-64 code
A little more janitorial work after commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture"). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'scripts/gdb')
-rw-r--r--scripts/gdb/linux/tasks.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py
index 17ec19e9b5bf..5be53b372a69 100644
--- a/scripts/gdb/linux/tasks.py
+++ b/scripts/gdb/linux/tasks.py
@@ -86,21 +86,12 @@ LxPs()
thread_info_type = utils.CachedType("struct thread_info")
-ia64_task_size = None
-
def get_thread_info(task):
thread_info_ptr_type = thread_info_type.get_type().pointer()
- if utils.is_target_arch("ia64"):
- global ia64_task_size
- if ia64_task_size is None:
- ia64_task_size = gdb.parse_and_eval("sizeof(struct task_struct)")
- 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)
+ 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()