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. |
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. |
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. |