1SLEEPING_THREAD_TO_G(9)    Kernel Debugger Internals   SLEEPING_THREAD_TO_G(9)
2
3
4

NAME

6       sleeping_thread_to_gdb_regs - Convert ptrace regs to GDB regs
7

SYNOPSIS

9       void sleeping_thread_to_gdb_regs(unsigned long * gdb_regs,
10                                        struct task_struct * p);
11

ARGUMENTS

13       gdb_regs
14           A pointer to hold the registers in the order GDB wants.
15
16       p
17           The struct task_struct of the desired process.
18

DESCRIPTION

20       Convert the register values of the sleeping process in p to the format
21       that GDB expects. This function is called when kgdb does not have
22       access to the struct pt_regs and therefore it should fill the gdb
23       registers gdb_regs with what has been saved in struct thread_struct
24       thread field during switch_to.
25

AUTHOR

27       Jason Wessel <jason.wessel@windriver.com>
28           Author.
29
31Kernel Hackers Manual 3.10         June 2019           SLEEPING_THREAD_TO_G(9)
Impressum