GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  UNW_BACKTRACE (3)

NAME

unw_backtrace -- return backtrace for the calling program

CONTENTS

Synopsis
Description
Return Value
See Also
Author

SYNOPSIS

#include <libunwind.h>

int unw_backtrace(void **buffer, int size);

#include <execinfo.h>

int backtrace(void **buffer, int size);

DESCRIPTION

unw_backtrace() is a convenient routine for obtaining the backtrace for the calling program. The routine fills up to size addresses in the array pointed by buffer. The routine is only available for local unwinding.

Note that many (but not all) systems provide practically identical function called backtrace(). The prototype for this function is usually obtained by including the <execinfo.h> header file -- a prototype for backtrace() is not provided by libunwind. libunwind weakly aliases backtrace() to unw_backtrace(), so when a program calling backtrace() is linked against libunwind, it may end up calling unw_backtrace().

RETURN VALUE

The routine returns the number of addresses stored in the array pointed by buffer. The return value may be zero to indicate that no addresses were stored.

SEE ALSO

libunwind(3), unw_step(3)

AUTHOR

David Mosberger-Tang
Email: dmosberger@gmail.com
WWW: http://www.nongnu.org/libunwind/.

Search for    or go to Top of page |  Section 3 |  Main Index


Programming Library UNW\_BACKTRACE (3) 31 August 2012

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.