Threads

List threads

A program can be composed of several threads. All these threads are executed independently, having their own registers, stack and local variables, but sharing global variables.

  1. From the main menu, select View ▸ Thread to open the Thread window.

The window shows the following information about each thread:

Active

This contains a yellow arrow that points to the active thread.

ID

This is a number corresponding to each thread.

File

The name of the file containing the function corresponding to the current frame of the current thread.

Line

The line number of the function corresponding to the current frame of the current thread.

Function

The name of the function corresponding to the frame of the current thread.

Address

The address of the function corresponding to the frame of the current thread.

Change current thread

The current thread is the thread whose stack and local variables are currently displayed in the debugger.

  1. In the Thread window, select the thread you want.

  2. Right-click and select Set current thread.

View current function

  1. In the Thread window, select the thread you want.

  2. Double-click, or right-click and select View Source.