expanding backtrace

Nick Roberts nickrob@snap.net.nz
Thu Jun 29 03:48:00 GMT 2006


 > You could write something like
 > 
 > while $pc != 0

I don't think that works.

 > or
 > 
 > while $sp <= $topofmem
 > 
 > It depends how your backtraces end.

If you mean:

  (gdb) start
  ...
  (gdb) set $topofmem=$sp

and use "$sp < $topofmem" for the loop condition, then that looks like a good
idea.

-- 
Nick                                           http://www.inet.net.nz/~nickrob



More information about the Gdb mailing list