函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gdbstub_msg_write

函数原型:void gdbstub_msg_write(const char *s, int len)

返回类型:void

参数:

类型参数名称
const char *s
intlen
204  如果len恒等于0则len等于strlen - Find the length of a string*@s: The string to be sized
208  gdbmsgbuf[0]等于'O'
211 len大于0循环
212  bufptr等于gdbmsgbuf加1
215  如果len左移1位大于BUFMAX减2则wcount等于BUFMAX减2右移1位
217  否则wcount等于len
221 i小于wcount循环bufptr等于hex_byte_pack(bufptr, s[i])
223  bufptr等于'\0'
226  s加等于wcount
227  len减等于wcount
230  Send the packet in buffer.* Check for gdb connection if asked for.
调用者
名称描述
gdb_cmd_exception_passHandle the 'C' signal / exception passing packets
vkdb_printf
kgdb_console_write