preprocess

This command displays the preprocessed expression, not the evaluated expression.

Show/hideSyntax

preprocess [expression]

Note

This functionality is dependent on the compiler generating accurate macro debug information.

Show/hideExample

Example 86. preprocess

If your application contained the following code:

#define BASE_ADDRESS (0x1000)#define REG_ADDRESS  (BASE_ADDRESS + 0x10)int main () {    return REG_ADDRESS;}

During a debug session, you can display the BASE_ADDRESS by using:

>preprocess REG_ADDRESS
((0x1000) + 0x10)

This compares with the expression value as output by the print command:

>print/x REG_ADDRESS
0x1010

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452J
Non-ConfidentialID051612