Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gdbstub_state

Proto:int gdbstub_state(struct kgdb_state *ks, char *cmd)

Type:int

Parameter:

TypeParameterName
struct kgdb_state *ks
char *cmd
1088  Case cmd[0] == 'e'
1089  error = kgdb_arch_handle_exception - Handle architecture specific GDB packets.*@e_vector: The error vector of the exception that happened.*@signo: The signal number of the exception that happened.*@err_code: The error code of the exception that happened.
1095  Return error
1096  Case cmd[0] == 's'
1097  Case cmd[0] == 'c'
1098  strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
1099  Return 0
1100  Case cmd[0] == '$'
1101  strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
1102  gdbstub_use_prev_in_buf = strlen - Find the length of a string*@s: The string to be sized
1103  gdbstub_prev_in_buf_pos = 0
1104  Return 0
1106  write_char('+')
1107  Send the packet in buffer.* Check for gdb connection if asked for.
1108  Return 0
Caller
NameDescribe
kdb_stub
kdb_gdb_state_pass