1KGDB_ARCH_HANDLE_EXC(9) KGDB Internals KGDB_ARCH_HANDLE_EXC(9)
2
3
4
6 kgdb_arch_handle_exception - Handle architecture specific GDB packets.
7
9 int kgdb_arch_handle_exception(int vector, int signo, int err_code,
10 char * remcom_in_buffer,
11 char * remcom_out_buffer,
12 struct pt_regs * regs);
13
15 vector
16 The error vector of the exception that happened.
17
18 signo
19 The signal number of the exception that happened.
20
21 err_code
22 The error code of the exception that happened.
23
24 remcom_in_buffer
25 The buffer of the packet we have read.
26
27 remcom_out_buffer
28 The buffer of BUFMAX bytes to write a packet into.
29
30 regs
31 The struct pt_regs of the current process.
32
34 This function MUST handle the ´c´ and ´s´ command packets, as well
35 packets to set / remove a hardware breakpoint, if used. If there are
36 additional packets which the hardware needs to handle, they are handled
37 here. The code should return -1 if it wants to process more packets,
38 and a 0 or 1 if it wants to exit from the kgdb callback.
39
41 Jason Wessel <jason.wessel@windriver.com>
42 Author.
43
44 Tom Rini <trini@kernel.crashing.org>
45 Author.
46
47 Amit S. Kale <amitkale@linsyssoft.com>
48 Author.
49
51Kernel Hackers Manual 2.6. June 2019 KGDB_ARCH_HANDLE_EXC(9)