[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] libunwind with LD_PRELOAD option

From: Arun Sharma
Subject: Re: [Libunwind-devel] libunwind with LD_PRELOAD option
Date: Tue, 6 Sep 2011 12:26:37 -0700

On Tue, Sep 6, 2011 at 11:33 AM, Shan Shan
<address@hidden> wrote:

> It works fine and even unwinds stack properly :-). This unit test app was
> crashing before even when i just link with -lunwind. Is this something
> specific to "-funwind-tables" option? Do all app needs to be compiled with
> this option? or may be out of the 4 options tried by libunwind (arm) only
> this option is stable?

If you want to get a backtrace at *any* instruction in the program,
yes you should use -funwind-tables. Otherwise, gcc generates enough
information only from call/return sites.

Usually, the challenge is to make sure that everything linked to your
target binary is compiled with the desired options.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]