dbg

Debug Hint

DBG #<option>

Provides a hint to the debug system.

Details

Provides a hint to the debug system with an option value (0–15). The option field typically encodes a debug-related hint such as setting a breakpoint or specifying breakpoint type, but the exact behavior is debug-system dependent. No register state or condition flags are modified. This is an A32-only instruction.

Pseudocode Operation

Hint(DEBUG, option)

Example

DBG #option

Encoding

Binary Layout
cond
00110
0
10
00
00
1
1
1
1
00001111
option
 
Format System Hint
Opcode 0x0320F0F0
Extension A32 (Base)

Operands

  • option
    Option

Reference (Arm AArch32 ISA)

Instruction Forms

Encoding Instruction ISA Bit pattern
0x0320F0F0 DBG{<c>}{<q>} #<option> A32 cond | 00110 | 0 | 10 | 00 | 00 | 1 | 1 | 1 | 1 | 00001111 | option
0xF3AF80F0 DBG{<c>}{<q>} #<option> T32 111100111010 | 1 | 1 | 1 | 1 | 10 | 0 | 0 | 0 | 000 | 1111 | option

Description

DBG executes as a NOP. Arm deprecates any use of the DBG instruction.

Operation

if ConditionPassed() then
    EncodingSpecificOperations();