18.3.4. Debugging a multi-threaded application using DS-5

DS-5 Debugger tracks the current thread using the debugger variable, $thread. You can use this variable in print commands or in expressions. Threads are displayed in the Debug Control view with a unique ID that is used by the debugger and a unique ID from the operating system. For example:

Thread 1 (OS ID 1036)

where Thread 1 is the ID used by the debugger, and OS ID 1036 is the ID from the OS.

A separate call stack is maintained for each thread and the selected stack frame is shown in bold text. All the views in the DS-5 Debug perspective are associated with the selected stack frame and are updated when you select another frame.

Figure 18.2. Threading call stacks in the DS-5 Debug Control view

Threading call stacks in the DS-5 Debug Control view

Copyright © 2015 ARM. All rights reserved.ARM DEN0024A
Non-ConfidentialID050815