LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   examine memory with gdb (https://www.linuxquestions.org/questions/programming-9/examine-memory-with-gdb-328635/)

Ephracis 05-30-2005 04:15 PM

examine memory with gdb
 
I am trying to learn how to handle gdb but the help command in it does not give me much info. What I want to do is to examine the memory after the program has crashed. I want to examine the memory of both the program itself but also its static variables and also the stack.

Regards.

rjlee 05-30-2005 04:43 PM

backtrace will tell you the stack.
print expression will tell you the value of a given expression (local or stack variable).

You might look to using a GUI front-end to gdb; I think kdevelop has one. Even xgdb helps as an aide to memory.

Ephracis 05-31-2005 06:30 AM

It seems that the command I was looking for was x (examine) and now when I can handle it, everything is working out great. :)


All times are GMT -5. The time now is 06:22 AM.