Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gdbstub_msg_write

Proto:void gdbstub_msg_write(const char *s, int len)

Type:void

Parameter:

TypeParameterName
const char *s
intlen
204  If len == 0 Then len = strlen - Find the length of a string*@s: The string to be sized
208  gdbmsgbuf[0] = 'O'
211  When len > 0 cycle
212  bufptr = gdbmsgbuf + 1
215  If len << 1 > BUFMAX - 2 Then wcount = BUFMAX - 2 >> 1
217  Else wcount = len
221  When i < wcount cycle 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.
Caller
NameDescribe
gdb_cmd_exception_passHandle the 'C' signal / exception passing packets
vkdb_printf