I need to examine the value of a pointer at a certain point in my program, and I'm not quite sure how to do it. I tried 'print ptr', but GDB just throws back this message:
It doesn't work for any other variable either. I've compiled the program with the -g switch.Code:
No symbol "ptr" in current context.