1.3.21 core apply, thread apply

Switches control to a specific thread or processor to execute a debugger command and then switches back to the original state.

If an error occurs then the debugger stops processing the command and switches back to the original state.


thread apply {all|id} command
core apply {all|id} command



Specifies all threads or all processors.


Specifies the unique thread or processor number. You can use info cores, info processes, or info threads to display the id numbers.


Specifies the debugger command that you want to execute.

If all is specified then the command is executed on each thread or processor successively before switching back.

Example 1-24 Examples

thread apply all print /x $pc         # Cycle through all threads and print address
                                      # in PC register (hexadecimal).
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.