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