Skip to main content

IAR Embedded Workbench for RH850 3.20.x

The C-SPY emulated I/O mechanism

In this section:

The C-SPY emulated I/O mechanism works as follows:

  1. The debugger will detect the presence of the function __DebugBreak, which will be part of the application if you linked it with the linker option for C-SPY emulated I/O.

  2. In this case, the debugger will automatically set a breakpoint at the __DebugBreak function.

  3. When your application calls a function in the DLIB low-level I/O interface, for example, open, the __DebugBreak function is called, which will cause the application to stop at the breakpoint and perform the necessary services.

  4. The execution will then resume.

See also Briefly about C-SPY emulated I/O.