Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. [amihailov@amihailov:/home/amihailov]$ locate execinfo.h
  2. /usr/local/include/execinfo.h
  3. [amihailov@amihailov:/home/amihailov]$ cat /usr/local/include/execinfo.h
  4. /* $backtrace: backtrace.h,v 1.1 2010/09/09 22:23:45 marco Exp $ */
  5. /*
  6. * Copyright (c) 2010 Marco Peereboom <marco@conformal.com>
  7. * Copyright (c) 2010 Conformal Systems LLC.
  8. *
  9. * Permission to use, copy, modify, and distribute this software for any
  10. * purpose with or without fee is hereby granted, provided that the above
  11. * copyright notice and this permission notice appear in all copies.
  12. *
  13. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  14. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  15. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  16. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  17. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  18. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  19. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  20. */
  21.  
  22. #ifndef _EXECINFO_H_
  23. #define _EXECINFO_H_
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. #ifndef __GNUC__
  30. #error "this library must be compiled with gcc"
  31. #endif
  32.  
  33. #include <dlfcn.h>
  34.  
  35. /* compatability functions with libexecinfo and glibc */
  36. int backtrace(void **, int);
  37. char **backtrace_symbols(void *const *, int);
  38. void backtrace_symbols_fd(void *const *, int, int);
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement