Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gdbstub_exit - Send an exit message to GDB*@status: The exit code to report.

Proto:void gdbstub_exit(int status)

Type:void

Parameter:

TypeParameterName
intstatus
1120  If Not kgdb_connected - Is a host GDB connected to us? Then Return
1122  kgdb_connected - Is a host GDB connected to us? = 0
1124  If Not dbg_io_ops || Use kdb or gdbserver mode Then Return
1127  buffer[0] = 'W'
1128  buffer[1] = hex_asc_hi(status)
1129  buffer[2] = hex_asc_lo(status)
1131  write_char('$')
1132  checksum = 0
1134  When loop < 3 cycle
1135  ch = buffer[loop]
1136  checksum += ch
1137  write_char(ch)
1140  write_char('#')
1141  write_char(hex_asc_hi(checksum))
1142  write_char(hex_asc_lo(checksum))
1145  If flush Then flush()
Caller
NameDescribe
dbg_notify_reboot