Sets a hardware breakpoint.
#include <netware.h> int CSetABreakpoint ( int number, void *addr, uint8_t type, uint8_t length );
(IN) Specifies the number for this breakpoint, which is obtained from the ReserveABreakpointRTag function.
(IN) Points to the address for this breakpoint:
If you are setting a write or a read/write breakpoint, pass in a pointer to the data.
If you are setting an execution breakpoint, pass in a pointer to the code.
(IN) Specifies the type of breakpoint with one of the following values:
(IN) Specifies the size of the data or of the function's data type with one of the following values:
Execution breakpoints should always be set to 1 byte in length, and breakpoint addresses should be aligned to the length specified.
If successful, returns a value from 0 to 3. Otherwise, returns -1.
You can set up to 4 breakpoints (numbered 0 through 3). The first set up of a breakpoint returns 0, the next 1, and so on until you have set up 4 breakpoints. If you attempted to set up a fifth breakpoint, the CSetABreakpoint function returns -1.