I’d like to do printf style printing from GDB. For instance, I want to print a variable value, but with some text to describe what it is. Can it be done, and if so, can you give an example?
I’d like to do printf style printing from GDB . For instance, I want
Share
If you have a definition
int i = 5;, you can print the value ofiwith formatted printing this way: