backtrace.c 522 B

12345678910111213141516171819
  1. /*
  2. * Perform stack unwinding by using the _Unwind_Backtrace.
  3. *
  4. * User application that wants to use backtrace needs to be
  5. * compiled with -fexceptions option and -rdynamic to get full
  6. * symbols printed.
  7. * Copyright (C) 2010 STMicroelectronics Ltd
  8. * Author(s): Carmelo Amoroso <carmelo.amoroso@st.com>
  9. *
  10. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  11. *
  12. */
  13. #error "Arch specific implementation must be provided to properly work"
  14. int backtrace (void **array, int size)
  15. {
  16. return -1;
  17. }