函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_bp* Handle the bp commands

函数原型:static int kdb_bp(int argc, const char **argv)

返回类型:int

参数:

类型参数名称
intargc
const char **argv
282  char * symname = NULL
283  offset等于0ul
285  kdb_bp_t template = {0}
287  如果argc恒等于0则
293  如果 This entry is available 则继续下一循环
298  返回:0
301  nextarg等于1
302  diag等于kdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller
304  如果diag则返回:diag
306  如果非 Address breakpoint is present at 则返回:KDB_BADINT
312 bpno小于KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.循环
313  如果 This entry is available 退出
317  如果bpno恒等于KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.则返回:KDB_TOOMANYBPT
320  如果字符串比较恒等于0则
321  Uses hardware register 等于BP_HARDWARE_BREAKPOINT
322  diag等于kdb_parsebp(argc, argv, & nextarg, & template)
323  如果diag则返回:diag
325  否则
326  Uses hardware register 等于BP_BREAKPOINT
335 i小于KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.循环
339  kdb_printf("You already have a breakpoint at "kdb_bfd_vma_fmt0"\n", Address breakpoint is present at )
341  返回:KDB_DUPBPT
345  Breakpoint is active in register 等于1
350  bp等于template
351  This entry is available 等于0
353  kdb_printbp* Internal function to format and print a breakpoint entry.* Parameters:* None.* Outputs:* None.* Returns:* None.* Locking:* None.* Remarks:
355  返回:0