This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 4/4 v2] unwinder: The unwinder (x86* only)


On Thu, 2013-06-13 at 19:30 +0200, Jan Kratochvil wrote:
> On Thu, 13 Jun 2013 15:48:22 +0200, Mark Wielaard wrote:
> > But I don't fully understand
> > why/where jmp is actually used in the test case.
> 
> It tests the unwinder can properly unwind even if we stop at the very first
> instruction of a function.  Therefore that ISACTIVATION is true for the bottom
> frame.

O, I finally see how it works. When the child raises SIGUSR1 then the
backtrace.c testcase explicitly sets the PC to the first instruction of
jmp in backtrace-child to check this condition. How tricky and crafty :)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]