unw_set_fpreg.man 2.3 KB

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