I have used C code in Trace32
and I want to read the value of C macro in Trace32
. How to do that? Will the macro value be stored in some register?
eg:
#define DEST_ADD = 0xE432;
address = htonl(DEST_ADD);
How do I read the value of macro: DEST_ADD
in Trace32
?
The C preprocessor will replace macros in your code with their values, so there's a good chance the macro doesn't exist anymore in the resulting object file. However you can just print the value of the variable instead:
You might also want to have a look at this: How to check if a macro exists in an object file in C?