enter image description hereI have a program I'm trying to look at in GDB which has been compiled without debug options, so no symbols table, can't see the source code etcetc. The main function has 2 variables:
char *p;
char buffer[128];
Can I identify the memory locations of these variables without the symbols table?
If yes, how? and would x/x <addr of p>
correctly tell me what address in memory the pointer is pointing to?
I have access to the source code seperately, and I see that the pointer should be pointing to the address of the buffer + an offset value, but I don't know how to actually find the location in memory of that pointer so that I can examine what it the pointer looks like at different stages of execution.