diff options
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
-rw-r--r-- | scripts/gdb/linux/tasks.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py index 3191f4792398..862a4ae24d49 100644 --- a/scripts/gdb/linux/tasks.py +++ b/scripts/gdb/linux/tasks.py | |||
@@ -20,7 +20,6 @@ task_type = utils.CachedType("struct task_struct") | |||
20 | 20 | ||
21 | 21 | ||
22 | def task_lists(): | 22 | def task_lists(): |
23 | global task_type | ||
24 | task_ptr_type = task_type.get_type().pointer() | 23 | task_ptr_type = task_type.get_type().pointer() |
25 | init_task = gdb.parse_and_eval("init_task").address | 24 | init_task = gdb.parse_and_eval("init_task").address |
26 | t = g = init_task | 25 | t = g = init_task |
@@ -89,7 +88,6 @@ ia64_task_size = None | |||
89 | 88 | ||
90 | 89 | ||
91 | def get_thread_info(task): | 90 | def get_thread_info(task): |
92 | global thread_info_type | ||
93 | thread_info_ptr_type = thread_info_type.get_type().pointer() | 91 | thread_info_ptr_type = thread_info_type.get_type().pointer() |
94 | if utils.is_target_arch("ia64"): | 92 | if utils.is_target_arch("ia64"): |
95 | global ia64_task_size | 93 | global ia64_task_size |