1STRUCT KGDB_ARCH(9)        Kernel Debugger Internals       STRUCT KGDB_ARCH(9)
2
3
4

NAME

6       struct_kgdb_arch - Describe architecture specific values.
7

SYNOPSIS

9       struct kgdb_arch {
10         unsigned char gdb_bpt_instr[BREAK_INSTR_SIZE];
11         unsigned long flags;
12         int (* set_breakpoint) (unsigned long, char *);
13         int (* remove_breakpoint) (unsigned long, char *);
14         int (* set_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
15         int (* remove_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
16         void (* disable_hw_break) (struct pt_regs *regs);
17         void (* remove_all_hw_break) (void);
18         void (* correct_hw_break) (void);
19         void (* enable_nmi) (bool on);
20       };
21

MEMBERS

23       gdb_bpt_instr[BREAK_INSTR_SIZE]
24           The instruction to trigger a breakpoint.
25
26       flags
27           Flags for the breakpoint, currently just KGDB_HW_BREAKPOINT.
28
29       set_breakpoint
30           Allow an architecture to specify how to set a software breakpoint.
31
32       remove_breakpoint
33           Allow an architecture to specify how to remove a software
34           breakpoint.
35
36       set_hw_breakpoint
37           Allow an architecture to specify how to set a hardware breakpoint.
38
39       remove_hw_breakpoint
40           Allow an architecture to specify how to remove a hardware
41           breakpoint.
42
43       disable_hw_break
44           Allow an architecture to specify how to disable hardware
45           breakpoints for a single cpu.
46
47       remove_all_hw_break
48           Allow an architecture to specify how to remove all hardware
49           breakpoints.
50
51       correct_hw_break
52           Allow an architecture to specify how to correct the hardware debug
53           registers.
54
55       enable_nmi
56           Manage NMI-triggered entry to KGDB
57

AUTHOR

59       Jason Wessel <jason.wessel@windriver.com>
60           Author.
61
63Kernel Hackers Manual 3.10         June 2019               STRUCT KGDB_ARCH(9)
Impressum