函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Send the packet in buffer.* Check for gdb connection if asked for.

函数原型:static void put_packet(char *buffer)

返回类型:void

参数:

类型参数名称
char *buffer
154  当1循环
155  write_char('$')
156  checksum等于0
157  count等于0
159 ch等于buffer[count]循环
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  如果flushflush()
172  ch等于GDB remote protocol parser:
174  如果ch恒等于3则ch等于GDB remote protocol parser:
178  如果ch恒等于'+'则返回
187  如果ch恒等于'$'则
188  write_char('-')
189  如果flushflush()
191  返回
调用者
名称描述
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