Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
173 views

Exception Handling in C++ Implementation: What is the "alternative function entry point", entered by the unwinding library to destruct local objects?

Here is a very simple file in c++ class C { public: C(){} ~C(){} }; void g() { throw std::exception(); } void f() { C c; g(); } int main() { return 0; } LLVM produces the ...
alex35833's user avatar
  • 117
3 votes
1 answer
1k views

Using libunwind for implementing exceptions

Working on a compiler, need some assistance understanding and working with libunwind. Here's what I have so far: #define UNW_LOCAL_ONLY #include <libunwind.h> #include <stdio.h> #include &...
Alex Covington's user avatar
1 vote
1 answer
719 views

_Unwind_ and unw_ functions (LLVM's libunwind)

I'm new to the LLVM's libunwind library. Could you please tell me what's the purpose and the difference of the two sets of functions that libunwind provides: functions with the prefix _Unwind_ ...
embedc's user avatar
  • 1,645
1 vote
1 answer
432 views

unw_init_remote failed with UNW_EBADREG

On android, while collecting traces of a particular native process, I observed that the backtrace of a particular thread of the process was not collected(libunwind is used to collect the backtrace). ...
sg1993's user avatar
  • 335
1 vote
0 answers
179 views

Is it safe to iterate through a stack frame?

In my previous question, I was trying to see if I could programmatically obtain a stack trace of a child process from its parent. I've successfully done so, but now another question has arisen in my ...
tonysdg's user avatar
  • 1,365