sleeping_thread_to_gdb_regs(9)

sleeping_thread_to_gdb_regs9

Convert ptrace regs to gdb regs

Usage

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

Arguments

gdb_regs

A pointer to hold the registers in the order GDB wants.

p

The struct task_struct of the desired process.

Overview

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

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Author

Jason Wessel <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.