Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Handle the 'q' query packets

Proto:static void gdb_cmd_query(struct kgdb_state *ks)

Type:void

Parameter:

TypeParameterName
struct kgdb_state *ks
706  finished = 0
709  Case Our I/O buffers. [1] == 's'
710  Case Our I/O buffers. [1] == 'f'
711  If memcmp(Our I/O buffers. + 2, "ThreadInfo", 10) Then Break
714  i = 0
715  remcom_out_buffer[0] = 'm'
716  ptr = remcom_out_buffer + 1
717  If Our I/O buffers. [1] == 'f' Then
720  thr_query = 0
721  int_to_threadref(thref, - cpu - 2)
723  * ptr++ = ','
724  i++
729  If i >= thr_query && Not finished Then
732  * ptr++ = ','
733  thr_query++
734  If thr_query % KGDB_MAX_THREAD_QUERY == 0 Then finished = 1
737  i++
740  *--ptr = '\0'
741  Break
743  Case Our I/O buffers. [1] == 'C'
745  strcpy(remcom_out_buffer, "QC")
749  Break
750  Case Our I/O buffers. [1] == 'T'
751  If memcmp(Our I/O buffers. + 1, "ThreadExtraInfo,", 16) Then Break
754  threadid = 0
755  ptr = Our I/O buffers. + 17
757  If Not getthread(linux_regs, threadid) Then
759  Break
761  If threadid > 0 Then
765  Else
772  Break
774  Case Our I/O buffers. [1] == 'R'
775  If strncmp(Our I/O buffers. , "qRcmd,", 6) == 0 Then
793  Break
Caller
NameDescribe
gdb_serial_stubThis function performs all gdbserial command procesing