Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:GDB remote protocol parser:

Proto:static int gdbstub_read_wait(void)

Type:int

Parameter:Nothing

62  ret = -1
65  If Value for the false possibility is greater at compile time(gdbstub_use_prev_in_buf) Then
66  If gdbstub_prev_in_buf_pos < gdbstub_use_prev_in_buf Then Return Our I/O buffers. [gdbstub_prev_in_buf_pos++]
68  Else gdbstub_use_prev_in_buf = 0
73  When ret < 0 cycle
74  When kdb_poll_funcs[i] != NULL cycle
75  ret = kdb_poll_funcs[i]()
76  If ret > 0 Then Break
79  Return ret
Caller
NameDescribe
get_packetscan for the sequence $#
put_packetSend the packet in buffer.* Check for gdb connection if asked for.