函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:While we find nice hex chars, build a long_val.* Return number of chars processed.

函数原型:int kgdb_hex2long(char **ptr, unsigned long *long_val)

返回类型:int

参数:

类型参数名称
char **ptr
unsigned long *long_val
296  num等于0
297  negate等于0
299  long_val等于0
301  如果ptr恒等于'-'则
302  negate等于1
303  ptr自加
305 ptr循环
306  hex_val等于十六进制数字转换为实数
307  如果hex_val小于0则退出
310  long_val等于long_val左移4位按位或hex_val
311  num自加
312  ptr自加
315  如果negatelong_val等于负long_val
318  返回:num
调用者
名称描述
kgdb_arch_handle_exceptionkgdb_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.
write_mem_msgWrite memory due to an 'M' or 'X' packet.
gdb_cmd_memreadHandle the 'm' memory read bytes
gdb_cmd_queryHandle the 'q' query packets
gdb_cmd_taskHandle the 'H' task query packets
gdb_cmd_threadHandle the 'T' thread query packets
gdb_cmd_breakHandle the 'z' or 'Z' breakpoint remove or set packets