Skip to contentSkip to conversation

libunwind

DISCUSSION Umut Aymakoglu 3 participants 5 messages Aug 20, 2003 – Aug 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi -
Are there any other alternatives for unwinding the stack on Linux-ia64
other than the libunwind API ?

thanks,
Umut

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Umut Aymakoglu

Umut> Are there any other alternatives for unwinding the stack on Linux-ia64 Umut> other than the libunwind API ?

Exactly what are you looking for? Or put differently, what's wrong with libunwind?

	--david
#2 lore raw
In reply to Umut Aymakoglu

I need to put stack tracing into my program. To use the libunwinding , i need to link with the library which will cause problems for the customers who do not have the libunwind library.

thanks,
Umut

David Mosberger
<[email protected] To: Umut Aymakoglu/Menlo Park/IBM@IBMUS
l.hp.com> cc: [email protected]
Subject: Re: libunwind
08/20/2003 04:52
PM
Please respond to
davidm

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Wed, 20 Aug 2003 15:13:13 -0700, Umut Aymakoglu <[email protected]>

said:

Umut> Are there any other alternatives for unwinding the stack on
Linux-ia64
Umut> other than the libunwind API ?

Exactly what are you looking for? Or put differently, what's wrong with libunwind?

             --david
#3 lore raw
In reply to Umut Aymakoglu
Quoted 3 lines · Umut Aymakoglu

I need to put stack tracing into my program. To use the libunwinding , i need to link with the library which will cause problems for the customers who do not have the libunwind library.

ksymoops has the same problem, it needs libbfd and libiberty which are not always installed. Link libunwind statically with your program and use dynamic linking for everything else.

ld ... -Wl,-Bstatic -lunwind -Wl,-Bdynamic -o ...

People who install the binary have no problems, only people who want to compile the program themselves need to install libunwind.

#4 lore raw
In reply to Umut Aymakoglu
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Umut Aymakoglu

Umut> I need to put stack tracing into my program. To use the Umut> libunwinding , i need to link with the library which will Umut> cause problems for the customers who do not have the libunwind Umut> library.

Why not link it in statically? The current libunwind is distributed under the MIT license, so even if your application is proprietary, there is no problem with linking it in statically.

	--david