unw_step.tex 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. \documentclass{article}
  2. \usepackage[fancyhdr,pdf]{latex2man}
  3. \input{common.tex}
  4. \begin{document}
  5. \begin{Name}{3}{unw\_step}{David Mosberger-Tang}{Programming Library}{unw\_step}unw\_step -- advance to next stack frame
  6. \end{Name}
  7. \section{Synopsis}
  8. \File{\#include $<$libunwind.h$>$}\\
  9. \Type{int} \Func{unw\_step}(\Type{unw\_cursor\_t~*}\Var{cp});\\
  10. \section{Description}
  11. The \Func{unw\_step}() routine advances the unwind cursor \Var{cp} to
  12. the next older, less deeply nested stack frame.
  13. \section{Return Value}
  14. On successful completion, \Func{unw\_step}() returns a positive value
  15. if the updated cursor refers to a valid stack frame, or 0 if the
  16. previous stack frame was the last frame in the chain. On error, the
  17. negative value of one of the error-codes below is returned.
  18. \section{Thread and Signal Safety}
  19. \Func{unw\_step}() is thread-safe. If cursor \Var{cp} is in the local
  20. address-space, this routine is also safe to use from a signal handler.
  21. \section{Errors}
  22. \begin{Description}
  23. \item[\Const{UNW\_EUNSPEC}] An unspecified error occurred.
  24. \item[\Const{UNW\_ENOINFO}] \Prog{Libunwind} was unable to locate the
  25. unwind-info needed to complete the operation.
  26. \item[\Const{UNW\_EBADVERSION}] The unwind-info needed to complete the
  27. operation has a version or a format that is not understood by
  28. \Prog{libunwind}.
  29. \item[\Const{UNW\_EINVALIDIP}] The instruction-pointer
  30. (``program-counter'') of the next stack frame is invalid (e.g., not
  31. properly aligned).
  32. \item[\Const{UNW\_EBADFRAME}] The next stack frame is invalid.
  33. \item[\Const{UNW\_ESTOPUNWIND}] Returned if a call to
  34. \Func{find\_proc\_info}() returned -\Const{UNW\_ESTOPUNWIND}.
  35. \end{Description}
  36. In addition, \Func{unw\_step}() may return any error returned by the
  37. \Func{find\_proc\_info}(), \Func{get\_dyn\_info\_list\_addr}(),
  38. \Func{access\_mem}(), \Func{access\_reg}(), or \Func{access\_fpreg}()
  39. call-backs (see \Func{unw\_create\_addr\_space}(3)).
  40. \section{See Also}
  41. \SeeAlso{libunwind(3)},
  42. \SeeAlso{unw\_create\_addr\_space(3)}
  43. \section{Author}
  44. \noindent
  45. David Mosberger-Tang\\
  46. Email: \Email{dmosberger@gmail.com}\\
  47. WWW: \URL{http://www.nongnu.org/libunwind/}.
  48. \LatexManEnd
  49. \end{document}