Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_bp.c Create Date:2022-07-28 11:44:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int kdb_bc(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
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  If strcmp(argv[0], "be") == 0 Then cmd = KDBCMD_BE
394  Else if strcmp(argv[0], "bd") == 0 Then cmd = KDBCMD_BD
396  Else 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  If argc != 1 Then Return KDB_ARGCOUNT
402  If strcmp(argv[1], "*") == 0 Then
403  lowbp = 0
404  highbp = KDB_MAXBPT describes the total number of breakpoints* supported by this architecure.
405  Else
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  If diag Then Return diag
416  lowbp = highbp = addr
417  highbp++
418  Else
422  lowbp = highbp = i
423  highbp++
424  Break
434  When i < highbp cycle
437  If This entry is available Then Continue
440  done++
446  kdb_printf("Breakpoint %d at "kdb_bfd_vma_fmt" cleared\n", i, Address breakpoint is present at )
453  Break
454  Case 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  Break
463  Case cmd == KDBCMD_BD
464  If Not Breakpoint is active in register Then Break
469  kdb_printf("Breakpoint %d at "kdb_bfd_vma_fmt" disabled\n", i, Address breakpoint is present at )
473  Break
481  Return If Not done Then KDB_BPTNOTFOUND Else 0