Debugger panes for TRK

The Debug/Run windows Debugger panes for TRK provides control over entry points, message handling, and instruction set default settings.

Different options are available in the Debugger pane based on the type of TRK launch configuration, including:

Run-mode Debugger pane

In run-mode you can control message handling and instruction sets.

Figure 1 - Debug windows Debugger pane for run mode debugging

Table 1. Debugger pane — run-mode options
Item Explanation

Break at entry point

When checked, break at the specified entry point entered into the text field. For .EXE targets, the default entry point is set to E32Main. By default, the Break at entry point option is unchecked for all other target types.

View program output When checked, show the contents of any program output in the TRK Progam Output Console in a Console view.
View messages between Carbide and debug agent

When checked, show the communications between Carbide and the target device in the TRK Communication Log Console of the Console view.

NOTE You can pin the TRK Communication Log view so that it does not lose focus.

Message retry delay (ms) Enter the delay time in milliseconds (ms) between 100 and 10000 the debugger should wait for a response. The default Message Retry Delay value is 2000.

Default Instructon Set

 

Specifies the default instruction set to use if the debugger cannot determine the processor mode in order to set breakpoints and to disassemble code. The options are:

  • Auto (examine code at current PC location)
  • ARM (32-bit)
  • THUMB (16-bit)

By default the Instruction Set option uses ARM 32-bit.

 

Stop-mode Debugger pane

In stop-mode use the Startup Options to attach to a target and debug or run from the specified start address. Then use Target Options to specify the target's processor type, and set which initialization and memory configuration files to use in the debug session.

Figure 2 - Debug windows Debugger pane for stop mode debugging

Table 2. Debugger pane — stop-mode options
Item Explanation

Break at entry point

When checked, break at the specified entry point entered into the text field. For .EXE targets, the default entry point is set to E32Main. By default, the Break at entry point option is unchecked for all other target types.

Soft attach Enable the Soft attach option to attach a debug session to a target and debug from the specified start address instead of the target's default start address. When enabled the downloaded image option is ignored.
Debug from start address Enable the Debug from start address option to debug from the target's default start address.
Run from start address Enable the Run from start address option to run from the target's default start address.
Start address (hex) Enter in hexidecimal format (0x0) the starting address to use during the debug session.
Reset target at the start of each debug session Forces the Carbide IDE to reset the target at the start of each debug session. This ensures that the debugging session uses the most up-to-date program code.
Target Processor A drop down with a list of all supported processors. The process selection should help in determining the memory model. This will in turn help determine the base address and the offsets for the Symbian OS kernel aware information.
Target initialization file

Check this box to have the debugger run an initialization script when the debug session starts. For example, if a target device requires initialization for the debugger to be able to read and write memory or registers, you can specify an initialization script here.

Click Browse to select a script file using a standard file selection dialog box. When using T32, most of the initialization is done in the CMM script file. With other debug protocols like Sophia, you can specify the initialization file, which can be run after connecting to the target.

Memory configuration file Controls whether the debugger uses a memory configuration file when a debug session starts. The Carbide debugger uses this configuration file to know which memory is accessible, readable, and writable on the target.

To access the Debugger Pane

  1. Select the Run > Debug... menu item
  2. The Debug window appears.

  3. Select a Symbian OS Application TRK configuration in the Configurations list
  4. Click Debugger tab
  5. The Debugger pane appears (Figure 1).

Common concepts
Common references