函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_bc* Handles the 'bc', 'be', and 'bd' commands* [bd|bc|be] <breakpoint-number>* [bd|bc|be] ** Parameters:* argc Count of arguments in argv* argv Space delimited command line arguments* Outputs:* None

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

返回类型:int

参数:

类型参数名称
intargc
const char **argv
380  kdb_bp_t * bp = NULL
381  lowbp等于KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.
382  highbp等于0
383  done等于0
385  diag等于0
392  如果字符串比较恒等于0则cmd等于KDBCMD_BE
394  否则如果字符串比较恒等于0则cmd等于KDBCMD_BD
396  否则cmd等于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
399  如果argc不等于1则返回:KDB_ARGCOUNT
402  如果字符串比较恒等于0则
403  lowbp等于0
404  highbp等于KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.
405  否则
406  diag等于kdbgetularg - This function will convert a numeric string into an* unsigned long value.* Parameters:* arg A character string representing a numeric value* Outputs:* *value the unsigned long represntation of arg.* Returns:
407  如果diag则返回:diag
416  lowbp等于highbp等于addr
417  highbp自加
418  否则
421  如果 Address breakpoint is present at 恒等于addr
422  lowbp等于highbp等于i
423  highbp自加
424  退出
434 i小于highbp循环
437  如果 This entry is available 则继续下一循环
440  done自加
446  kdb_printf("Breakpoint %d at "kdb_bfd_vma_fmt" cleared\n", i, Address breakpoint is present at )
453  退出
454  :cmd恒等于KDBCMD_BE
457  kdb_printf("Breakpoint %d at "kdb_bfd_vma_fmt" enabled", i, Address breakpoint is present at )
461  kdb_printf("\n")
462  退出
463  :cmd恒等于KDBCMD_BD
469  kdb_printf("Breakpoint %d at "kdb_bfd_vma_fmt" disabled\n", i, Address breakpoint is present at )
473  退出
481  返回:如果非doneKDB_BPTNOTFOUND否则0