Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
The -break-info Command
Synopsis
-break-info breakpoint
Get information about a single breakpoint.
GDB command
The corresponding GDB command is 'info break breakpoint'.
Example
N.A.
The -break-insert command
Synopsis
-break-insert [ -t ] [ -h ] [ -r ]
[ -c condition ] [ -i ignore-count ]
[ -p thread ] [ line | addr ]
If specified, line, can be one of:
• function
• filename:linenum
• filename:function
• *address
The possible optional parameters of this command are:
'-t' Insert a temporary breakpoint.
'[-h]' Insert a hardware breakpoint.
'[-c condition]' Make the breakpoint conditional on condition.
'[-i ignore-count]' Initialize the ignore-count.
`-r' Insert a regular breakpoint in all the functions whose names match
the given regular expression. Other flags are not applicable to
regular expression.
Result
The result is in the form:
^done,bkptno="number",func="funcname",
file="filename",line="lineno"
where number is the GDB number for this breakpoint, funcname is the name of the function
where the breakpoint was inserted, filename is the name of the source file which contains this
function, and lineno is the source line number within that file.
NOTE: This format is open to change.
GDB command
The corresponding GDB commands are 'break', 'tbreak', 'hbreak', 'thbreak', and 'rbreak'.
Example
(gdb)
-break-insert main
^done,bkpt=number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0001072c",
240 The GDB/MI Interface