This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: expanding backtrace


 > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]