This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: [RFA]: Patch to handle new libunwind release


The attached patch changes libunwind-frame.c to dlopen "libunwind-xxxx.so" instead of "libunwind.so". This is needed as the design has changed in libunwind 0.97 and the interface functions are no longer found in the vanilla library. Without the patch, ia64 debugging will revert to the examine prologue method which cannot handle a number of scenarios, including backtraces on threads.

Tested on ia64 with libunwind-0.96 and libunwind-0.97.

Ok to commit?

2004-07-28 Jeff Johnston <jjohnstn@redhat.com>

        * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
        libunwind-xxxx.so" where xxxx is UNW_TARGET.


I feel ill


+#ifndef LIBUNWIND_SO
+#define LIBUNWIND_SO "libunwind-" STRINGIFY(UNW_TARGET) ".so"
+#endif

however, we've clearly got no choice, so "obvious".

Andrew



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