Function report |
Source Code:kernel\debug\gdbstub.c |
Create Date:2022-07-28 11:38:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:scan for the sequence $<data>#<checksum>
Proto:static void get_packet(char *buffer)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
char * | buffer |
98 | Do |
103 | When (ch = GDB remote protocol parser:) != '$' cycle |
107 | checksum = 0 |
108 | xmitcsum = -1 |
110 | count = 0 |
117 | If ch == '#' Then Break |
124 | If ch == '#' Then |
125 | xmitcsum = hex_to_bin - convert a hex digit to its real value*@ch: ascii character represents hex digit* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad* input. << 4 |
126 | xmitcsum += hex_to_bin - convert a hex digit to its real value*@ch: ascii character represents hex digit* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad* input. |
128 | If checksum != xmitcsum Then write_char('-') |
131 | Else write_char('+') |
Name | Describe |
---|---|
gdb_serial_stub | This function performs all gdbserial command procesing |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |