---
name: "gdb_regs_to_pt_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/gdb_regs_to_pt_regs"
---

# gdb\_regs\_to\_pt\_regs(9)

Convert GDB regs to ptrace regs.

## NAME

gdb\_regs\_to\_pt\_regs - Convert GDB regs to ptrace regs.

## SYNOPSIS

**void gdb\_regs\_to\_pt\_regs(unsigned long \*** *gdb\_regs***, struct pt\_regs \*** *regs***);**

## ARGUMENTS

*gdb\_regs*

A pointer to hold the registers we've received from GDB.

*regs*

A pointer to a struct pt\_regs to hold these values in.

## DESCRIPTION

Convert the GDB regs in *gdb\_regs* into the pt\_regs, and store them in *regs*.

## AUTHOR

**Jason Wessel** \<jason.wessel@windriver.com\>

Author.

## COPYRIGHT
