---
name: "pt_regs_to_gdb_regs"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pt_regs_to_gdb_regs"
---

# pt\_regs\_to\_gdb\_regs(9)

Convert ptrace regs to GDB regs

## NAME

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@windriver.com\>

Author.

## COPYRIGHT
