函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\gdbstub.c Create Date:2022-07-27 12:43:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This function performs all gdbserial command procesing

函数原型:int gdb_serial_stub(struct kgdb_state *ks)

返回类型:int

参数:

类型参数名称
struct kgdb_state *ks
946  error等于0
950  memset(remcom_out_buffer, 0, remcom_out_buffer的长度)
951  kgdb_usethread等于task
952  kgdb_usethreadid等于Remap normal tasks to their real PID,* CPU shadow threads are mapped to -CPU - 2
953  pass_exception等于0
955  如果kgdb_connected - Is a host GDB connected to us?
960  ptr等于remcom_out_buffer
961  ptr自加等于'T'
962  ptr等于hex_byte_pack(ptr, signo)
963  ptr加等于strlen - Find the length of a string*@s: The string to be sized
964  int_to_threadref(thref, Remap normal tasks to their real PID,* CPU shadow threads are mapped to -CPU - 2)
965  ptr等于pack_threadid(ptr, thref)
966  ptr自加等于';'
967  Send the packet in buffer.* Check for gdb connection if asked for.
970  当1循环
971  error等于0
974  memset(remcom_out_buffer, 0, remcom_out_buffer的长度)
976  scan for the sequence $#
979  :Our I/O buffers. [0]恒等于'?'
981  退出
982  :Our I/O buffers. [0]恒等于'g'
984  退出
985  :Our I/O buffers. [0]恒等于'G'
987  退出
988  :Our I/O buffers. [0]恒等于'm'
990  退出
991  :Our I/O buffers. [0]恒等于'M'
993  退出
1002  :Our I/O buffers. [0]恒等于'X'
1004  退出
1008  :Our I/O buffers. [0]恒等于'D'
1009  :Our I/O buffers. [0]恒等于'k'
1011  转到:default_handle
1012  :Our I/O buffers. [0]恒等于'R'
1015  退出
1016  :Our I/O buffers. [0]恒等于'q'
1018  退出
1019  :Our I/O buffers. [0]恒等于'H'
1021  退出
1022  :Our I/O buffers. [0]恒等于'T'
1024  退出
1025  :Our I/O buffers. [0]恒等于'z'
1026  :Our I/O buffers. [0]恒等于'Z'
1028  退出
1030  :Our I/O buffers. [0]恒等于'3'
1031  如果Our I/O buffers. [1]恒等于'\0'则
1037  :Our I/O buffers. [0]恒等于'C'
1039  如果tmp大于0则转到:default_handle
1041  如果tmp恒等于0则退出
1044  :Our I/O buffers. [0]恒等于'c'
1045  :Our I/O buffers. [0]恒等于's'
1046  如果kgdb_contthreadkgdb_contthread不等于当前进程
1053  默认
1054  default_handle :
1065  如果error大于等于0或Our I/O buffers. [0]恒等于'D'或Our I/O buffers. [0]恒等于'k'则
1067  error等于0
1068  转到:kgdb_exit
1074  Send the packet in buffer.* Check for gdb connection if asked for.
1077  kgdb_exit :
1078  如果pass_exceptionerror等于1
1080  返回:error
调用者
名称描述
kgdb_cpu_enter