函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-27 09:40:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, char *remcomInBuffer, char *remcomOutBuffer, struct pt_regs *linux_regs)

返回类型:int

参数:

类型参数名称
inte_vector
intsigno
interr_code
char *remcomInBuffer
char *remcomOutBuffer
struct pt_regs *linux_regs
447  :remcomInBuffer[0]恒等于'c'
448  :remcomInBuffer[0]恒等于's'
450  ptr等于remcomInBuffer[1]
451  如果While we find nice hex chars, build a long_val.* Return number of chars processed.ip等于addr
454  :remcomInBuffer[0]恒等于'D'
455  :remcomInBuffer[0]恒等于'k'
457  flags与等于X86_EFLAGS_TF的反
458  atomic_set( & kgdb_cpu_doing_single_step, - 1)
461  如果remcomInBuffer[0]恒等于's'则
462  flags或等于X86_EFLAGS_TF
467  返回:0
471  返回:负1
调用者
名称描述
single_step_cont
gdb_serial_stubThis function performs all gdbserial command procesing
gdbstub_state