函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize the breakpoint table and register breakpoint commands.

函数原型:void __init kdb_initbptab(void)

返回类型:void

参数:

527  memset( & Table of kdb_breakpoints, '\0', Table of kdb_breakpoints的长度)
529 i小于KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.循环 This entry is available 等于1
532  kdb_register_flags("bp", kdb_bp* Handle the bp commands, "[<vaddr>]", "Set/Display breakpoints", 0, KDB_ENABLE_FLOW_CTRL | Repeat the command w/o arguments )
535  kdb_register_flags("bl", kdb_bp* Handle the bp commands, "[<vaddr>]", "Display breakpoints", 0, KDB_ENABLE_FLOW_CTRL | Repeat the command w/o arguments )
538  如果flags按位与KGDB_HW_BREAKPOINTkdb_register_flags("bph", kdb_bp* Handle the bp commands, "[<vaddr>]", "[datar [length]|dataw [length]] Set hw brk", 0, KDB_ENABLE_FLOW_CTRL | Repeat the command w/o arguments )
542  kdb_register_flags("bc", kdb_bc* Handles the 'bc', 'be', and 'bd' commands* [bd|bc|be] * [bd|bc|be] ** Parameters:* argc Count of arguments in argv* argv Space delimited command line arguments* Outputs:* None, "<bpnum>", "Clear Breakpoint", 0, KDB_ENABLE_FLOW_CTRL)
545  kdb_register_flags("be", kdb_bc* Handles the 'bc', 'be', and 'bd' commands* [bd|bc|be] * [bd|bc|be] ** Parameters:* argc Count of arguments in argv* argv Space delimited command line arguments* Outputs:* None, "<bpnum>", "Enable Breakpoint", 0, KDB_ENABLE_FLOW_CTRL)
548  kdb_register_flags("bd", kdb_bc* Handles the 'bc', 'be', and 'bd' commands* [bd|bc|be] * [bd|bc|be] ** Parameters:* argc Count of arguments in argv* argv Space delimited command line arguments* Outputs:* None, "<bpnum>", "Disable Breakpoint", 0, KDB_ENABLE_FLOW_CTRL)
552  kdb_register_flags("ss", kdb_ss* Process the 'ss' (Single Step) command, "", "Single Step", 1, KDB_ENABLE_FLOW_CTRL | Repeat the command w/o arguments )
调用者
名称描述
kdb_initInitialize kdb_printf, breakpoint tables and kdb state