1. NAME

pt_regs_to_gdb_regs - Convert ptrace regs to GDB regs

2. SYNOPSIS

void pt_regs_to_gdb_regs(unsigned long *  gdb_regs , struct pt_regs *  regs );

3. ARGUMENTS

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

regs
    The struct pt_regs of the current process.

4. DESCRIPTION

Convert the pt_regs in regs into the format for registers that GDB expects, stored in gdb_regs.

5. AUTHOR

Jason Wessel <>
    Author.

6. COPYRIGHT