Commit 15f1d827 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen Committed by Linus Torvalds

scripts/gdb: remove useless global instruction

Signed-off-by: default avatarThiébaud Weksteen <thiebaud@weksteen.fr>
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a930850b
...@@ -20,7 +20,6 @@ task_type = utils.CachedType("struct task_struct") ...@@ -20,7 +20,6 @@ task_type = utils.CachedType("struct task_struct")
def task_lists(): def task_lists():
global task_type
task_ptr_type = task_type.get_type().pointer() task_ptr_type = task_type.get_type().pointer()
init_task = gdb.parse_and_eval("init_task").address init_task = gdb.parse_and_eval("init_task").address
t = g = init_task t = g = init_task
...@@ -89,7 +88,6 @@ ia64_task_size = None ...@@ -89,7 +88,6 @@ ia64_task_size = None
def get_thread_info(task): def get_thread_info(task):
global thread_info_type
thread_info_ptr_type = thread_info_type.get_type().pointer() thread_info_ptr_type = thread_info_type.get_type().pointer()
if utils.is_target_arch("ia64"): if utils.is_target_arch("ia64"):
global ia64_task_size global ia64_task_size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment