how do I print a #defined constant in GDB?

Posted by Charles Ma on Stack Overflow See other posts from Stack Overflow or by Charles Ma
Published on 2010-05-29T05:58:36Z Indexed on 2010/05/29 6:02 UTC
Read the original article Hit count: 222

Filed under:
|
|

As per subject.

I have some constants hash defined like so:

#define CONST 40

I've set a break point 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)

© Stack Overflow or respective owner

Related posts about c

    Related posts about gdb