How to get a call stack backtrace? (deeply embedded, no library support)

前端 未结 6 1413

I want my exception handlers and debug functions to be able to print call stack backtraces, basically just like the backtrace() library function in glibc. Unfortunately, my C li

6条回答
  •  执念已碎
    2021-01-31 11:17

    For this you need -funwind-tables or -fasynchronous-unwind-tables In some targets this is required in order for _Unwind_Backtrace work properly!

提交回复
热议问题