Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sources.redhat.com
Subject: [RFC] link GDB against libunwind-ia64
Date: Thu, 11 Aug 2005 23:54:00 -0000	[thread overview]
Message-ID: <20050811222323.GO10325@adacore.com> (raw)

Hello, 

I'm currently working on a GDB port for ia64-hpux, and I'm having some
problems with the unwinding of a stacked register. I'm trying to find
the source of the problem, and part of the investigation lead me to look
into the libunwind-ia64 code.

I noticed that GDB uses the libunwind-ia64 shared library without being
directly linked to it. Instead, it uses dlopen().

This method has its advantages, but also introduces an extra layer
of complication that is preventing me from making progress (*): A bug
in my debugger is causing problems when I am attempting operations such
as next or step over code inside that library.

So I'd like to add an option so that GDB is explicitly linked against
libunwind-ia64, instead of using dlopen(). As a bonus, this may simplify
our work in terms of binary distribution...

I was wondering if this would be an interesting enhancement to contribute.

Let me know...
-- 
Joel

(*): There is also the fact that it's tough to tell when you run GDB
     whether the libunwind unwinder has been initialized or not, since
     it depends on the success of the dlopen() and a few other operations.
     And when succesful, it's also tough to determine which one was used.


             reply	other threads:[~2005-08-11 22:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-11 23:54 Joel Brobecker [this message]
2005-08-12  1:28 ` Kevin Buettner
2005-08-12  9:41 ` Mark Kettenis
2005-08-12 17:13   ` Marcel Moolenaar
2005-08-12 20:31     ` Joel Brobecker
2005-08-15 19:04   ` Joel Brobecker

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=20050811222323.GO10325@adacore.com \
    --to=brobecker@adacore.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