Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\gdbstub.c Create Date:2022-07-28 11:38:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:While we find nice hex chars, build a long_val.* Return number of chars processed.

Proto:int kgdb_hex2long(char **ptr, unsigned long *long_val)

Type:int

Parameter:

TypeParameterName
char **ptr
unsigned long *long_val
296  num = 0
297  negate = 0
299  long_val = 0
301  If ptr == '-' Then
302  negate = 1
303  ptr++
305  When ptr cycle
306  hex_val = hex_to_bin - convert a hex digit to its real value*@ch: ascii character represents hex digit* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad* input.
307  If hex_val < 0 Then Break
310  long_val = long_val << 4 | hex_val
311  num++
312  ptr++
315  If negate Then long_val = -long_val
318  Return num
Caller
NameDescribe
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