mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
scripts/gdb: fix PEP8 compliance
Signed-off-by: Thiébaud Weksteen <thiebaud@weksteen.fr> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a2e73c4804
commit
6ad18b7331
4 changed files with 7 additions and 7 deletions
|
@ -18,6 +18,7 @@ from linux import utils
|
|||
|
||||
task_type = utils.CachedType("struct task_struct")
|
||||
|
||||
|
||||
def task_lists():
|
||||
global task_type
|
||||
task_ptr_type = task_type.get_type().pointer()
|
||||
|
@ -38,6 +39,7 @@ def task_lists():
|
|||
if t == init_task:
|
||||
return
|
||||
|
||||
|
||||
def get_task_by_pid(pid):
|
||||
for task in task_lists():
|
||||
if int(task['pid']) == pid:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue