Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA]: Patch to handle new libunwind release
Date: Tue, 03 Aug 2004 15:38:00 -0000	[thread overview]
Message-ID: <410FB16F.80107@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

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.


[-- Attachment #2: libunwind-frame.patch --]
[-- Type: text/plain, Size: 1090 bytes --]

Index: libunwind-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/libunwind-frame.c,v
retrieving revision 1.4
diff -u -p -r1.4 libunwind-frame.c
--- libunwind-frame.c	14 Apr 2004 15:18:06 -0000	1.4
+++ libunwind-frame.c	28 Jul 2004 22:27:48 -0000
@@ -45,10 +45,6 @@
 static int libunwind_initialized;
 static struct gdbarch_data *libunwind_descr_handle;
 
-#ifndef LIBUNWIND_SO
-#define LIBUNWIND_SO "libunwind.so"
-#endif
-
 /* Required function pointers from libunwind.  */
 static int (*unw_get_reg_p) (unw_cursor_t *, unw_regnum_t, unw_word_t *);
 static int (*unw_get_fpreg_p) (unw_cursor_t *, unw_regnum_t, unw_fpreg_t *);
@@ -75,6 +71,10 @@ struct libunwind_frame_cache
 #define STRINGIFY2(name)	#name
 #define STRINGIFY(name)		STRINGIFY2(name)
 
+#ifndef LIBUNWIND_SO
+#define LIBUNWIND_SO "libunwind-" STRINGIFY(UNW_TARGET) ".so"
+#endif
+
 static char *get_reg_name = STRINGIFY(UNW_OBJ(get_reg));
 static char *get_fpreg_name = STRINGIFY(UNW_OBJ(get_fpreg));
 static char *get_saveloc_name = STRINGIFY(UNW_OBJ(get_save_loc));

             reply	other threads:[~2004-08-03 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03 15:38 Jeff Johnston [this message]
2004-08-04 18:17 ` Andrew Cagney
2004-08-06 18:44   ` Jeff Johnston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=410FB16F.80107@redhat.com \
    --to=jjohnstn@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox