SourcePoint AMD Help

Table of Contents

dbgbreak, dbgremove, dbgdisable, dbgenable

Set, clear, display, enable, and disable debug register breakpoints.

Syntax

dbgbreak

dbgbreak = [sts,]{type},location[,name][,proc][,translate]

ย 

dbgremove [all]

dbgremove = {type | name | location | size | proc} [,...]

ย 

dbgenable = {type | name | location | size | proc} [,...]

ย 

dbgdisable [all]

dbgdisable = {type | name | location | size | proc} [,...]

Where:

sts

{ e[nabled] | d[isabled] }

type

{ execute | data access | ย data write | ย I/O access } [in smm]

name

n[ame] = breakpoint name

proc

p[rocessor] = {P0 | P1 | P2 | ... | All }

location

l[ocation] = address

size

s[ize] = { b[yte] | h[alf-word] | w[ord] }

translate

x = { once | every go }

Discussion

The dbgbreak command sets and displays debug register (hardware) breakpoints. Dbgbreak with no arguments displays a list of the current debug register breaks.

The dbgremove command removes any or all of the debug register breaks. Arguments to this command qualify which debug register breaks are to be removed. For instance, dbgremove=data write, s=byte, removes all debug register breaks with the type set to data write and size set to byte. Dbgremove with no arguments removes all debug register breaks.

The dbgenable command selectively enables debug register breaks. Arguments to this command qualify which debug register breaks are to be affected. For instance, dbgenable=execute enables only debug register breaks with the type set to execute.

The dbgdisable command selectively disables debug register breaks. Arguments to this command qualify which debug register breaks are to be affected. For instance, dbgdisable=execute disables only debug register breaks with the type set to execute. If no arguments are specified, all debug register breaks are disabled.

Debug register breaks can also be set, displayed, etc. from the Breakpoints window.

Examples

To set a debug register break on a word access at location 1234:

dbgbreak = data access, location=1234, size=word

To set a debug register break on a word read at address 1000p:

dbgbreak = data read, location=1000p, size=word

To remove all debug register breaks:

dbgremove

To remove all debug register breaks with type set to data write and size set to bytes:

dbgremove = data write, size=byte

To disable all debug register breaks:

dbgdisable

To disable all debug register breaks with type set to execute:

dbgdisable = execute

To enable all debug register breaks with location set to 1234:

dbgenable = l=1234

Related Topics: