How do I inspect a string a pointer is pointing to when stepping through a program using GDB?
I can see the a pointer is pointing to 0x82c6e10. I know it is a string. How do I print it?
Using printf("%s\n", 0x82c6e10) gives Bad format string, missing '"'. The fact that gdb does not complain of unknown command tells me that the solution is some variation of what I am doing. Am I right? I tried escaping the quotes but that did not help.