函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 |
960 | ptr等于remcom_out_buffer |
961 | ptr自加等于'T' |
962 | ptr等于hex_byte_pack(ptr, signo) |
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自加等于';' |
970 | 当1循环 |
971 | error等于0 |
974 | memset(remcom_out_buffer, 0, remcom_out_buffer的长度) |
979 | 当:Our I/O buffers. [0]恒等于'?' |
981 | 退出 |
982 | 当:Our I/O buffers. [0]恒等于'g' |
985 | 当:Our I/O buffers. [0]恒等于'G' |
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' |
1012 | 当:Our I/O buffers. [0]恒等于'R' |
1013 | 如果Handle the 'R' reboot packets 则转到:default_handle |
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' |
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 |
1044 | 当:Our I/O buffers. [0]恒等于'c' |
1045 | 当:Our I/O buffers. [0]恒等于's' |
1046 | 如果kgdb_contthread且kgdb_contthread不等于当前进程则 |
1048 | error_packet(remcom_out_buffer, - EINVAL) |
1049 | 退出 |
1053 | 默认 |
1054 | default_handle : |
1065 | 如果error大于等于0或Our I/O buffers. [0]恒等于'D'或Our I/O buffers. [0]恒等于'k'则 |
1077 | kgdb_exit : |
1078 | 如果pass_exception则error等于1 |
1080 | 返回:error |
名称 | 描述 |
---|---|
kgdb_cpu_enter |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |