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

# struct\_kgdb\_arch(9)

Describe architecture specific values.

## NAME

struct\_kgdb\_arch - Describe architecture specific values.

## SYNOPSIS

```
struct kgdb_arch {
  unsigned char gdb_bpt_instr[BREAK_INSTR_SIZE];
  unsigned long flags;
  int (* set_breakpoint) (unsigned long, char *);
  int (* remove_breakpoint) (unsigned long, char *);
  int (* set_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
  int (* remove_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
  void (* disable_hw_break) (struct pt_regs *regs);
  void (* remove_all_hw_break) (void);
  void (* correct_hw_break) (void);
  void (* enable_nmi) (bool on);
};
```

## MEMBERS

gdb\_bpt\_instr\[BREAK\_INSTR\_SIZE\]

The instruction to trigger a breakpoint.

flags

Flags for the breakpoint, currently just **KGDB\_HW\_BREAKPOINT**.

set\_breakpoint

Allow an architecture to specify how to set a software breakpoint.

remove\_breakpoint

Allow an architecture to specify how to remove a software breakpoint.

set\_hw\_breakpoint

Allow an architecture to specify how to set a hardware breakpoint.

remove\_hw\_breakpoint

Allow an architecture to specify how to remove a hardware breakpoint.

disable\_hw\_break

Allow an architecture to specify how to disable hardware breakpoints for a single cpu.

remove\_all\_hw\_break

Allow an architecture to specify how to remove all hardware breakpoints.

correct\_hw\_break

Allow an architecture to specify how to correct the hardware debug registers.

enable\_nmi

Manage NMI-triggered entry to KGDB

## AUTHOR

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

Author.

## COPYRIGHT
