X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..c5071b3b404fbbfc84172a08fb4086bc5ce97fc9:/include/xbt/ex.h diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 82573e0ad6..b64b4d0999 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -476,11 +476,13 @@ XBT_PUBLIC(void) xbt_ex_free(xbt_ex_t e); /** @brief Shows a backtrace of the current location */ XBT_PUBLIC(void) xbt_backtrace_display_current(void); /** @brief reimplementation of glibc backtrace based directly on gcc library, without implicit malloc */ -XBT_PUBLIC(int)xbt_backtrace_no_malloc(void**bt, int size); +XBT_PUBLIC(int) xbt_backtrace_no_malloc(void**bt, int size); /** @brief Captures a backtrace for further use */ XBT_PUBLIC(void) xbt_backtrace_current(xbt_ex_t * e); /** @brief Display a previously captured backtrace */ XBT_PUBLIC(void) xbt_backtrace_display(xbt_ex_t * e); +/** @brief Get current backtrace with libunwind */ +XBT_PUBLIC(int) xbt_libunwind_backtrace(void *bt[XBT_BACKTRACE_SIZE], int size); #ifdef XBT_USE_DEPRECATED