ChorusOS 5.0 Debugging Guide

Setting Up a Debugging Session

The following steps guide you through setting up your first system debugging session:

  1. Connect a serial cable between the host and the target.

  2. Prepare the system for symbolic debugging. See "Enabling Symbolic Debugging" for information on how to do this.

  3. Start and configure the ChorusOS debug server chserver. See "Starting the Debug Server" for more information.

  4. Register the target with chadmin, the ChorusOS debug server administration tool. See "Registering a Target".

  5. Configure and start the GDB debugging tool for ChorusOS.


Note -

GDB performs the system console function during system debugging. However, you can also use the standalone chconsole tool. If the debug server is not connected to a target, you can still view the system console using the tip or cu commands (but cannot debug). See the tip(1) and cu(1C) man pages for more information.


For subsequent debugging sessions, you need only perform the following steps:

  1. Start the ChorusOS debug server chserver, if it is not already running.

  2. Start the GDB debugging tool for ChorusOS systems.