1.3.109 preprocess

Displays the preprocessed expression, not the evaluated expression.


preprocess [expression]


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

Example 1-112 Examples

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 REG_ADDRESS by using:

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

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

>print/x REG_ADDRESS
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.