
GRMON3-UM
June 2019, Version 3.1.0
98
www.cobham.com/gaisler
9. bp - syntax
NAME
bp - Add, delete or list breakpoints
SYNOPSIS
bp ?
address
? ?
cpu#
?
bp
type
?
options
?
address
?
mask
? ?
cpu#
?
bp delete ?
index
?
bp enable ?
index
?
bp disable ?
index
?
DESCRIPTION
The bp command may be used to list, add or delete all kinds of breakpoints. The
address
parameter that is
specified when creating a breakpoint can either be an address or a symbol. The
mask
parameter can be used to
break on a range of addresses. If omitted, the default value is 0xfffffffc (i.e. a single address).
Software breakpoints are inserted by replacing an instruction in the memory with a breakpoint instruction. I.e. any
CPU in a multi-core system that encounters this breakpoint will break.
Hardware breakpoints/watchpoints will be set to a single CPU core.
When adding a breakpoint a cpu# may optionally be specified to associate the breakpoint with a CPU. The CPU
index will be used to lookup symbols, MMU translations and for hardware breakpoints/watchpoints.
bp ?
address
? ?
cpu#
?
When omitting the address parameter this command will list breakpoints. If the address parameter is spec-
ified, it will create a software breakpoint.
bp soft
address
?
cpu#
?
Create a software breakpoint.
bp hard
address
?
mask
? ?
cpu#
?
Create a hardware breakpoint.
bp watch ?
options
?
address
?
mask
? ?
cpu#
?
Create a hardware watchpoint. The options
-read
/
-write
can be used to make it watch only reads or
writes, by default it will watch both reads and writes.
bp bus ?
options
?
address
?
mask
? ?
cpu#
?
Create an AMBA-bus watchpoint. The options
-read
/
-write
can be used to make it watch only reads
or writes, by default it will watch both reads and writes.
bp data ?
options
?
value
?
mask
? ?
cpu#
?
Create an AMBA data watchpoint. The
value
and
mask
parameters may be up to 128 bits, but number of
bits used depends on width of the bus on the system. Valid options are
-addr
and
-invert
. If
-addr
is specified, then also
-read
or
-write
are valid. See below for a description of the options.
bp delete ?
index..
?
When omitting the index all breakpoints will be deleted. If one or more indexes are specified, then those
breakpoints will be deleted. Listing all breakpoints will show the indexes of the breakpoints.
bp enable ?
index..
?
When omitting the index all breakpoints will be enabled. If one or more indexes are specified, then those
breakpoints will be enabled. Listing all breakpoints will show the indexes of the breakpoints.
bp disable ?
index..
?
When omitting the index all breakpoints will be disabled. If one or more indexes are specified, then those
breakpoints will be disabled. Listing all breakpoints will show the indexes of the breakpoints.
OPTIONS
-read
This option will enable a watchpoint to only watch loads at the specified address. The
-read
and
-write
are mutual exclusive.