函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scan for the sequence $<data>#<checksum>

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

返回类型:void

参数:

类型参数名称
char *buffer
98  循环
103 ch等于GDB remote protocol parser:不等于'$'循环
106  kgdb_connected - Is a host GDB connected to us?等于1
107  checksum等于0
108  xmitcsum等于负1
110  count等于0
115 count小于BUFMAX减1循环
117  如果ch恒等于'#'则退出
119  checksum等于checksumch
120  buffer[count]等于ch
121  count等于count加1
124  如果ch恒等于'#'则
128  如果checksum不等于xmitcsumwrite_char('-')
131  否则write_char('+')
134  如果flushflush()
137  buffer[count]等于0
138 checksum不等于xmitcsum循环
调用者
名称描述
gdb_serial_stubThis function performs all gdbserial command procesing