public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Worley, Dale R (Dale)" <dworley@avaya.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Shared libraries and separate debugging files
Date: Wed, 24 Aug 2011 20:02:00 -0000	[thread overview]
Message-ID: <CD5674C3CD99574EBA7432465FC13C1B222B1F5852@DC-US1MBEX4.global.avaya.com> (raw)

I'm having a devil of a time getting GDB to work properly.  Specifically, I can't get it
to find the separate debugging file for a shared library.

There is a command `set solib-absolute-prefix' that will tell GDB where to look for
shared libraries.  But a while back I looked carefully and could not find how to set where
the corresponding separate debugging files were searched for.  In particular, the
solib-absolute-prefix is applied *before* applying the rule "in a subdirectory whose
name is identical to the leading directories of the executable's absolute file name"
I managed to work around this with a deep nest of special-purpose directories and
symbolic links.

Has anyone out there gotten separate debugging files to work with shared libraries
in a clean way?

Searching again, I see the following text in the info file "Separate Debug Files":


   * For the "debug link" method, GDB looks up the named file in the
     directory of the executable file, then in a subdirectory of that
     directory named `.debug', and finally under the global debug
     directory, in a subdirectory whose name is identical to the leading
     directories of the executable's absolute file name.
[...]
   You can set the global debugging info directory's name, and view the
name GDB is currently using.


However, nothing further on the page tells how to get or set the "global debugging
info directory".  Is this idea related to the *list* of directories described for
"set debug-file-directory"?

Thanks for any help you can give me,

Dale

             reply	other threads:[~2011-08-24 20:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 20:02 Worley, Dale R (Dale) [this message]
2011-08-24 22:22 ` Baurzhan Ismagulov
2011-08-25 20:12   ` Worley, Dale R (Dale)
2011-08-25 20:31     ` Jan Kratochvil
2011-08-26  3:40       ` Worley, Dale R (Dale)

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=CD5674C3CD99574EBA7432465FC13C1B222B1F5852@DC-US1MBEX4.global.avaya.com \
    --to=dworley@avaya.com \
    --cc=gdb@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).