libunwind-devel
[Top][All Lists]
Advanced

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

Re: [libunwind] Basic use of dynamic features?


From: David Mosberger
Subject: Re: [libunwind] Basic use of dynamic features?
Date: Wed, 15 Dec 2004 16:39:42 -0800

>>>>> On Tue, 14 Dec 2004 17:15:23 +0100, Tommy Hoffner <address@hidden> said:

  Tommy> Ok, I tried 0.98.3 from debian. Now the UNW_LOCAL_ONLY
  Tommy> doesn't work either :-)

It's good you mentioned Debian!  Your problem is due to a Debian
packaging issue: /usr/lib/libunwind.so.7 is currently being provided
by the libunwind from GCC-3.4, which doesn't support dynamic unwinding
at all.

I shall see if we can change this given that it's already causing
grief.

Assuming the libunwind package has been built in /tmp/libunwind, this
works for me:

 $ g++-3.4 -L/tmp/u/src/.libs jitunw.C flush-cache.s -lunwind -o jitunw
 $ LD_LIBRARY_PATH=/tmp/u/src/.libs jitunw
 pagesize 16384
 SUCCESS! (Caught Throw)

Of course, the other option is to install the libunwind from the
package.  The only caveat is that you need to make sure it gets
installed in /lib (with a symlink to /usr/lib).  I'll see about making
this the default.

        --david

reply via email to

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