SysTutorials

Linux Manual Pages › Section 9

pt_regs_to_gdb_regs(9)

pt_regs_to_gdb_regs – Convert ptrace regs to GDB regs

Synopsis

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

Arguments

gdb_regs

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

regs

The struct pt_regs of the current process.

Description

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

Author

Jason Wessel <jason.wessel [at] windriver.com>

Author.

Copyright