Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Send the packet in buffer.* Check for gdb connection if asked for.

Proto:static void put_packet(char *buffer)

Type:void

Parameter:

TypeParameterName
char *buffer
154  When 1 cycle
155  write_char('$')
156  checksum = 0
157  count = 0
159  When ch = buffer[count] cycle
160  write_char(ch)
161  checksum += ch
162  count++
165  write_char('#')
166  write_char(hex_asc_hi(checksum))
167  write_char(hex_asc_lo(checksum))
168  If flush Then flush()
172  ch = GDB remote protocol parser:
174  If ch == 3 Then ch = GDB remote protocol parser:
178  If ch == '+' Then Return
187  If ch == '$' Then
188  write_char('-')
189  If flush Then flush()
191  Return
Caller
NameDescribe
gdbstub_msg_write
gdb_cmd_detachkillHandle the 'D' or 'k', detach or kill packets
gdb_cmd_rebootHandle the 'R' reboot packets
gdb_serial_stubThis function performs all gdbserial command procesing
gdbstub_state