Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-06-03 Thread Ravitheja Addepally via lldb-dev
On Thu, Jun 2, 2016 at 9:58 PM, Jason Molenda wrote: > This has no eh_frame unwind instructions. Even if we were using eh_frame > at frame 0, you'd be out of luck. > I did not understand how eh_frame unwind instructions are not there, pardon me asking, can you tell me how you inferred that

Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-06-02 Thread Jason Molenda via lldb-dev
This has no eh_frame unwind instructions. Even if we were using eh_frame at frame 0, you'd be out of luck. I forget the exact order of fallbacks. I think for frame 0 we try to use the assembly profile unwind ("async unwind plan") and if we can't do that we fall back to the eh_frame unwind ("s

Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-06-02 Thread Ravitheja Addepally via lldb-dev
Hello, This is happening in TestPrintStackTraces, where we can end up here: ld-linux-x86-64.so.2`___lldb_unnamed_symbol95$$ld-linux-x86-64.so.2: 0x77df04e0 <+0>: 48 83 ec 38 subq $0x38, %rsp 0x77df04e4 <+4>: 48 89 04 24 movq %rax, (%rsp) 0x77df04e8 <+8>: 4

Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-06-01 Thread Jason Molenda via lldb-dev
It gets so tricky! It's hard for the unwinder to tell the difference between a real valid stack unwind and random data giving lots of "frames". It sounds like the problem that needs fixing is to figure out why the assembly unwind is wrong for frame 0. What do you get for disass -a image sh

Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-06-01 Thread Ravitheja Addepally via lldb-dev
Ok , currently the problem that I am facing is that there are cases in which eh_frame should have been used for frame 0 but it isn't and the assembly unwind just gives wrong information which could only be detected if the debugger tried to extract more frames. Now the usage of AddOneMoreFrame in Un

Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-05-31 Thread Jason Molenda via lldb-dev
> On May 31, 2016, at 11:31 AM, jing...@apple.com wrote: > > >> On May 31, 2016, at 12:52 AM, Ravitheja Addepally via lldb-dev >> wrote: >> >> Hello, >> I posted this query a while ago, i still have no answers, I am >> currently working on Bug 27687 (PrintStackTraces), so the reason for

Re: [lldb-dev] Inquiry regarding AddOneMoreFrame function in UnWindLLDB

2016-05-31 Thread via lldb-dev
> On May 31, 2016, at 12:52 AM, Ravitheja Addepally via lldb-dev > wrote: > > Hello, > I posted this query a while ago, i still have no answers, I am > currently working on Bug 27687 (PrintStackTraces), so the reason for the > failure is the erroneous unwinding of the frames from the ze