Scroll to navigation

STRUCT KGDB_ARCH(9) KGDB Internals STRUCT KGDB_ARCH(9)

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 (* remove_all_hw_break) (void);
void (* correct_hw_break) (void); };

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.

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.

AUTHORS

Jason Wessel <jason.wessel@windriver.com>

Author.

Tom Rini <trini@kernel.crashing.org>

Author.

Amit S. Kale <amitkale@linsyssoft.com>

Author.

COPYRIGHT

April 2023 Kernel Hackers Manual 2.6.