KGDB_ARCH_HANDLE_EXC(9) | KGDB Internals | KGDB_ARCH_HANDLE_EXC(9) |
NAME¶
kgdb_arch_handle_exception - Handle architecture specific GDB packets.
SYNOPSIS¶
int kgdb_arch_handle_exception(int vector, int signo, int err_code, char * remcom_in_buffer, char * remcom_out_buffer, struct pt_regs * regs);
ARGUMENTS¶
vector
signo
err_code
remcom_in_buffer
remcom_out_buffer
regs
DESCRIPTION¶
This function MUST handle the ´c´ and ´s´ command packets, as well packets to set / remove a hardware breakpoint, if used. If there are additional packets which the hardware needs to handle, they are handled here. The code should return -1 if it wants to process more packets, and a 0 or 1 if it wants to exit from the kgdb callback.
AUTHORS¶
Jason Wessel <jason.wessel@windriver.com>
Tom Rini <trini@kernel.crashing.org>
Amit S. Kale <amitkale@linsyssoft.com>
COPYRIGHT¶
May 2024 | Kernel Hackers Manual 2.6. |