> 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