Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\debug_core.c Create Date:2022-07-28 11:37:35
Last Modify:2020-03-17 19:04:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dbg_set_sw_break

Proto:int dbg_set_sw_break(unsigned long addr)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
333  err = kgdb_validate_break_address(addr)
334  breakno = -1
337  If err Then Return err
340  When i < KGDB_MAX_BREAKPOINTS cycle
341  If state == BP_SET && bpt_addr == addr Then Return -EEXIST
345  When i < KGDB_MAX_BREAKPOINTS cycle
346  If state == BP_REMOVED && bpt_addr == addr Then
348  breakno = i
349  Break
353  If breakno == -1 Then
355  If state == BP_UNDEFINED Then
356  breakno = i
357  Break
362  If breakno == -1 Then Return -E2BIG
365  state = BP_SET
366  type = BP_BREAKPOINT
367  bpt_addr = addr
369  Return 0
Caller
NameDescribe
gdb_cmd_breakHandle the 'z' or 'Z' breakpoint remove or set packets
_kdb_bp_install