Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

4.3.1.  External Code Interface

The external interface to the RSP server code is through three void functions.

  1. rsp_init (). Called at start up to initialize the RSP server. It initializes global data structures (discussed in Section 4.3.2) and then sets up a TCP/IP listener on the configured RSP port.

  2. handle_rsp (). Called repeatedly when the processor is stalled to read packets from any GDB client and process them.

  3. rsp_exception (). Called from the simulator to record any exceptions that occur, for subsequent use by handle_rsp (). It takes a single argument, the OpenRISC 1000 exception handler entry address, which is mapped by the RSP server to the equivalent GDB target signal.

Embecosm divider strip