Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I print a #defined constant in GDB?

People also ask

How do I print on this computer?

Highlight the text you want to print on the page and press Ctrl + P on a PC or Command + P on an Apple computer to open the print options.


help macro

You must compile with the -g3 flag for it to work and start your program before the macros are loaded.

In your case:

info macro CONST

or

macro expand CONST

More info: http://sourceware.org/gdb/current/onlinedocs/gdb/Macros.html