Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pack_threadid

Proto:static char *pack_threadid(char *pkt, unsigned char *id)

Type:char

Parameter:

TypeParameterName
char *pkt
unsigned char *id
411  lzero = 1
413  limit = id + Thread ID accessors. We represent a flat TID space to GDB, where* the per CPU idle threads (which under Linux all have PID 0) are* remapped to negative TIDs. / 2
414  When id < limit cycle
415  If Not lzero || id != 0 Then
416  pkt = hex_byte_pack(pkt, * id)
417  lzero = 0
419  id++
422  If lzero Then pkt = hex_byte_pack(pkt, 0)
425  Return pkt
Caller
NameDescribe
gdb_cmd_queryHandle the 'q' query packets
gdb_serial_stubThis function performs all gdbserial command procesing