unw_get_fpreg.man 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. '\" t
  2. .\" Manual page created with latex2man on Thu Aug 16 09:44:45 MDT 2007
  3. .\" NOTE: This file is generated, DO NOT EDIT.
  4. .de Vb
  5. .ft CW
  6. .nf
  7. ..
  8. .de Ve
  9. .ft R
  10. .fi
  11. ..
  12. .TH "UNW\\_GET\\_FPREG" "3" "16 August 2007" "Programming Library " "Programming Library "
  13. .SH NAME
  14. unw_get_fpreg
  15. \-\- get contents of floating\-point register
  16. .PP
  17. .SH SYNOPSIS
  18. .PP
  19. #include <libunwind.h>
  20. .br
  21. .PP
  22. int
  23. unw_get_fpreg(unw_cursor_t *cp,
  24. unw_regnum_t
  25. reg,
  26. unw_fpreg_t *valp);
  27. .br
  28. .PP
  29. .SH DESCRIPTION
  30. .PP
  31. The unw_get_fpreg()
  32. routine reads the value of floating\-point
  33. register reg
  34. in the stack frame identified by cursor cp
  35. and stores the value in the variable pointed to by valp\&.
  36. .PP
  37. The register numbering is target\-dependent and described in separate
  38. manual pages (e.g., libunwind\-ia64(3) for the IA\-64 target).
  39. Furthermore, the exact set of accessible registers may depend on the
  40. type of frame that cp
  41. is referring to. For ordinary stack
  42. frames, it is normally possible to access only the preserved
  43. (``callee\-saved\&'') registers and frame\-related registers (such as the
  44. stack\-pointer). However, for signal frames (see
  45. unw_is_signal_frame(3)),
  46. it is usually possible to access
  47. all registers.
  48. .PP
  49. Note that unw_get_fpreg()
  50. can only read the contents of
  51. floating\-point registers. See unw_get_fpreg(3)
  52. for a way to
  53. read registers which fit in a single word.
  54. .PP
  55. .SH RETURN VALUE
  56. .PP
  57. On successful completion, unw_get_fpreg()
  58. returns 0.
  59. Otherwise the negative value of one of the error\-codes below is
  60. returned.
  61. .PP
  62. .SH THREAD AND SIGNAL SAFETY
  63. .PP
  64. unw_get_fpreg()
  65. is thread\-safe as well as safe to use
  66. from a signal handler.
  67. .PP
  68. .SH ERRORS
  69. .PP
  70. .TP
  71. UNW_EUNSPEC
  72. An unspecified error occurred.
  73. .TP
  74. UNW_EBADREG
  75. An attempt was made to read a register
  76. that is either invalid or not accessible in the current frame.
  77. .PP
  78. In addition, unw_get_fpreg()
  79. may return any error returned by
  80. the access_mem(),
  81. access_reg(),
  82. and
  83. access_fpreg()
  84. call\-backs (see
  85. unw_create_addr_space(3)).
  86. .PP
  87. .SH SEE ALSO
  88. .PP
  89. libunwind(3),
  90. libunwind\-ia64(3),
  91. unw_get_reg(3),
  92. unw_is_fpreg(3),
  93. unw_is_signal_frame(3),
  94. unw_set_fpreg(3)
  95. .PP
  96. .SH AUTHOR
  97. .PP
  98. David Mosberger\-Tang
  99. .br
  100. Email: \fBdmosberger@gmail.com\fP
  101. .br
  102. WWW: \fBhttp://www.nongnu.org/libunwind/\fP\&.
  103. .\" NOTE: This file is generated, DO NOT EDIT.