kgdb_arch_handle_exception(9)

kgdb_arch_handle_exception9

Handle architecture specific gdb packets.

Usage

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

The error vector of the exception that happened.

signo

The signal number of the exception that happened.

err_code

The error code of the exception that happened.

remcom_in_buffer

The buffer of the packet we have read.

remcom_out_buffer

The buffer of BUFMAX bytes to write a packet into.

regs

The struct pt_regs of the current process.

Overview

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.

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Author

Jason Wessel <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.