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

# kgdb\_arch\_set\_pc(9)

Generic call back to the program counter

## NAME

kgdb\_arch\_set\_pc - Generic call back to the program counter

## SYNOPSIS

**void kgdb\_arch\_set\_pc(struct pt\_regs \*** *regs***, unsigned long** *pc***);**

## ARGUMENTS

*regs*

Current struct pt\_regs.

*pc*

The new value for the program counter

## DESCRIPTION

This function handles updating the program counter and requires an architecture specific implementation.

## AUTHOR

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

Author.

## COPYRIGHT
