Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-28 08:40:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kgdb_arch_handle_exception - Handle architecture specific GDB packets.*@e_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.

Proto:int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, char *remcomInBuffer, char *remcomOutBuffer, struct pt_regs *linux_regs)

Type:int

Parameter:

TypeParameterName
inte_vector
intsigno
interr_code
char *remcomInBuffer
char *remcomOutBuffer
struct pt_regs *linux_regs
447  Case remcomInBuffer[0] == 'c'
448  Case remcomInBuffer[0] == 's'
450  ptr = remcomInBuffer[1]
451  If While we find nice hex chars, build a long_val.* Return number of chars processed. Then ip = addr
454  Case remcomInBuffer[0] == 'D'
455  Case remcomInBuffer[0] == 'k'
457  flags &= ~X86_EFLAGS_TF
458  atomic_set( & kgdb_cpu_doing_single_step, - 1)
461  If remcomInBuffer[0] == 's' Then
462  flags |= X86_EFLAGS_TF
467  Return 0
471  Return -1
Caller
NameDescribe
single_step_cont
gdb_serial_stubThis function performs all gdbserial command procesing
gdbstub_state