1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct kgdb_arch</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Using kgdb, kdb and the kernel debugger internals"><link rel="up" href="CommonBackEndReq.html#kgdbArchitecture" title="Architecture Specifics"><link rel="prev" href="API-kgdb-arch-late.html" title="kgdb_arch_late"><link rel="next" href="API-struct-kgdb-io.html" title="struct kgdb_io"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct kgdb_arch</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-kgdb-arch-late.html">Prev</a>&#160;</td><th width="60%" align="center">Architecture Specifics</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-kgdb-io.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-kgdb-arch"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct kgdb_arch &#8212; 
2     Describe architecture specific values.
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct kgdb_arch {
5  unsigned char gdb_bpt_instr[BREAK_INSTR_SIZE];
6  unsigned long flags;
7  int (* set_breakpoint) (unsigned long, char *);
8  int (* remove_breakpoint) (unsigned long, char *);
9  int (* set_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
10  int (* remove_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
11  void (* disable_hw_break) (struct pt_regs *regs);
12  void (* remove_all_hw_break) (void);
13  void (* correct_hw_break) (void);
14  void (* enable_nmi) (bool on);
15};  </pre></div><div class="refsect1"><a name="idp1114370132"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">gdb_bpt_instr[BREAK_INSTR_SIZE]</span></dt><dd><p>
16   The instruction to trigger a breakpoint.
17      </p></dd><dt><span class="term">flags</span></dt><dd><p>
18   Flags for the breakpoint, currently just <code class="constant">KGDB_HW_BREAKPOINT</code>.
19      </p></dd><dt><span class="term">set_breakpoint</span></dt><dd><p>
20   Allow an architecture to specify how to set a software
21   breakpoint.
22      </p></dd><dt><span class="term">remove_breakpoint</span></dt><dd><p>
23   Allow an architecture to specify how to remove a
24   software breakpoint.
25      </p></dd><dt><span class="term">set_hw_breakpoint</span></dt><dd><p>
26   Allow an architecture to specify how to set a hardware
27   breakpoint.
28      </p></dd><dt><span class="term">remove_hw_breakpoint</span></dt><dd><p>
29   Allow an architecture to specify how to remove a
30   hardware breakpoint.
31      </p></dd><dt><span class="term">disable_hw_break</span></dt><dd><p>
32   Allow an architecture to specify how to disable
33   hardware breakpoints for a single cpu.
34      </p></dd><dt><span class="term">remove_all_hw_break</span></dt><dd><p>
35   Allow an architecture to specify how to remove all
36   hardware breakpoints.
37      </p></dd><dt><span class="term">correct_hw_break</span></dt><dd><p>
38   Allow an architecture to specify how to correct the
39   hardware debug registers.
40      </p></dd><dt><span class="term">enable_nmi</span></dt><dd><p>
41   Manage NMI-triggered entry to KGDB
42      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-kgdb-arch-late.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="CommonBackEndReq.html#kgdbArchitecture">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-kgdb-io.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">kgdb_arch_late</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct kgdb_io</span></td></tr></table></div></body></html>
43