Re: unwinding through signal frame on ARM

2014-03-12 Thread Ian Lance Taylor
On Wed, Mar 12, 2014 at 8:33 AM, Peng Yuan wrote: > > I'm using backtrace() to obtain call context by sending signals. But > program segfaults if the first instruction of a function receives > signal for backtrace. > > ARM unwinding in libgcc uses "return_address -= 2" to get the caller > address.

unwinding through signal frame on ARM

2014-03-12 Thread Peng Yuan
Hi, I'm using backtrace() to obtain call context by sending signals. But program segfaults if the first instruction of a function receives signal for backtrace. ARM unwinding in libgcc uses "return_address -= 2" to get the caller address. It is OK for normal function call with "bl xxx". But it ca