nomagic

no, it is not magic !

User Tools

Site Tools


gdbs:cmd_lc_z

This is an old revision of the document!


command z

Meaning: Remove a type breakpoint or watchpoint starting at address 'address' of kind 'kind'.

Implementation notes: A remote target shall return an empty string for an unrecognized breakpoint or watchpoint packet type. A remote target shall support either both or neither of a given ‘Ztype…’ and ‘ztype…’ packet pair. To avoid potential problems with duplicate packets, the operations should be implemented in an idempotent way.

software breakpoint

Format: ‘z0,addr,kind’

Meaning: Remove a software breakpoint at address addr of type kind.

Reply:

OK

hardware breakpoint

Format: ‘z1,addr,kind’

Meaning: Remove a hardware breakpoint at address addr.

A hardware breakpoint is implemented using a mechanism that is not dependent on being able to modify the target’s memory.

The kind is target-specific and typically indicates the size of the breakpoint in bytes that should be inserted. E.g., the ARM and MIPS can insert either a 2 or 4 byte breakpoint. Some architectures have additional meanings for kind; if no architecture-specific value is being used, it should be ‘0’. kind is hex-encoded.

Implementation note: A hardware breakpoint is not affected by code movement.

Reply:

OK

write watchpoint

Format: ‘!’

Meaning: Remove a write watchpoint at addr. The number of bytes to watch is specified by kind.

Reply:

OK

read watchpoint

Format: ‘!’

Meaning: Remove a read watchpoint at addr. The number of bytes to watch is specified by kind.

Reply:

OK

access watchpoint

Format: ‘z4,addr,kind’

Meaning: Remove an access watchpoint at addr. The number of bytes to watch is specified by kind.

Reply:

OK
gdbs/cmd_lc_z.1748561638.txt.gz · Last modified: by lars