On Thu, May 26, 2005 at 11:31:53AM -0700, Joshua A. Andler wrote:
Do you use Valgrind, any test suites, gdb / ddd ... ? Where do I
start
to learn how to use them?
I know that we do use gdb, but other than running a simple backtrace, I'd love to know more as well.
The info page for gdb was what I used to learn it. I detest using info though, so if you can find a good web version of the info page that might be easier for you, esp. if you're not comfortable in emacs. There is also some built-in help in gdb, although unless you're already familiar with debugger terminology you might find it a bit terse.
The next thing worth learning in gdb beyond backtraces is probably step tracing. This lets you step through the code one line at a time, print out variables as they get calculated, examine data structures, etc. Look into breakpoints, break, stack, next/nexti, step/stepi, continue, and watch. That should cover most of what you'll need to get going.
Bryce