1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-25 20:43:42 +01:00
libunwind-eh_elf/doc/unw_getcontext.man

77 lines
1.4 KiB
Groff
Raw Normal View History

2003-04-01 09:19:34 +02:00
'\" t
2004-01-21 02:05:07 +01:00
.\" Manual page created with latex2man on Tue Jan 20 16:44:37 PST 2004
2003-04-01 09:19:34 +02:00
.\" NOTE: This file is generated, DO NOT EDIT.
.de Vb
.ft CW
.nf
..
.de Ve
.ft R
.fi
..
2004-01-21 02:05:07 +01:00
.TH "UNW\\_GETCONTEXT" "3" "20 January 2004" "Programming Library " "Programming Library "
2003-04-01 09:19:34 +02:00
.SH NAME
unw_getcontext
\-\- get initial machine\-state
.PP
.SH SYNOPSIS
.PP
#include <libunwind.h>
.br
.PP
int
unw_getcontext(unw_context_t *ucp);
.br
.PP
.SH DESCRIPTION
.PP
The unw_getcontext()
routine initializes the context structure
pointed to by ucp
with the machine\-state of the call\-site. The
exact set of registers stored by unw_getcontext()
is
platform\-specific, but, in general, at least all preserved
(``callee\-saved\&'') and all frame\-related registers, such as the
stack\-pointer, will be stored.
.PP
2004-01-21 02:05:07 +01:00
This routine is normally implemented as a macro and applications
should not attempt to take its address.
.PP
2003-04-01 09:19:34 +02:00
.SH RETURN VALUE
.PP
On successful completion, unw_getcontext()
returns 0.
Otherwise, a value of \-1 is returned.
.PP
.SH THREAD AND SIGNAL SAFETY
.PP
unw_getcontext()
is thread\-safe as well as safe to use
from a signal handler.
.PP
.SH SEE ALSO
.PP
libunwind(3),
unw_init_local(3)
.PP
.SH AUTHOR
.PP
David Mosberger\-Tang
.br
Hewlett\-Packard Labs
.br
Palo\-Alto, CA 94304
.br
Email: \fBdavidm@hpl.hp.com\fP
.br
WWW: \fBhttp://www.hpl.hp.com/research/linux/libunwind/\fP\&.
.\" NOTE: This file is generated, DO NOT EDIT.