Skip to main content

IAR Embedded Workbench for RL78 5.20

__setTraceStartBreak

In this section:
Syntax
__setTraceStartBreak(location)
Parameters
location

A string that defines the code location of the breakpoint, either a valid C-SPY expression whose value evaluates to a valid address, an absolute location, or a source location. For more information about the location types, see Enter Location dialog box.

Return value

Result

Value

Successful

An unsigned integer uniquely identifying the breakpoint. The same value must be used when you want to clear the breakpoint.

Unsuccessful

0

Table 45. __setTraceStartBreak return values 


For use with

The C-SPY simulator.

Description

Sets a breakpoint at the specified location. When that breakpoint is triggered, the trace system is started.

Example
__var startTraceBp;
__var stopTraceBp;

traceOn()
{
  startTraceBp = __setTraceStartBreak
    ("{C:\\TEMP\\Utilities.c}.23.1");
  stopTraceBp = __setTraceStopBreak
    ("{C:\\temp\\Utilities.c}.30.1");
}

traceOff()
{
  __clearBreak(startTraceBp);
  __clearBreak(stopTraceBp);
}
See also

Trace Start Trigger breakpoint dialog box.