As per subject.
I have some constants hash defined like so:
#define CONST 40
I’ve set a breakpoint in my program. How do I print the value of that constant? (I know I can just look at the source code, but I want to be sure of it)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You must compile with the -g3 flag for it to work and start your program before the macros are loaded.
In your case:
or
More info: http://sourceware.org/gdb/current/onlinedocs/gdb/Macros.html