thread apply, core apply

This command temporarily switches control to a specific thread or processor to execute a DS-5 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.

Show/hideSyntax

thread apply { all | id} command

core apply { all | id} command

Where:

all

Specifies all threads or all processors.

id

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

command

Specifies the DS-5 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.

Show/hideExample

Example 152. thread apply, core apply

thread apply all print /x $pc         # Cycle through all threads and print address
                                      # in PC register (hexadecimal)

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452K
Non-ConfidentialID071912