title: how to use gdb to explore the stack/heap?
body: <p>Could anyone please give me a quick overview/point me to documentation of a way to inspect the stack (and heap?) of a C program? I thought this should be done with GDB, but if there are other more straighforward alternatives, then that should be fine as well.</p>
  
  <p>Thanks.</p>