From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31805 invoked by alias); 24 Aug 2011 20:02:57 -0000 Received: (qmail 31795 invoked by uid 22791); 24 Aug 2011 20:02:56 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from p-us1-iereast-outbound.us1.avaya.com (HELO p-us1-iereast-outbound.us1.avaya.com) (135.11.29.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Aug 2011 20:02:43 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EADdXVU6HCzI1/2dsb2JhbABCqAB3gUcSKFEBFSlCJwQbGqFVhAkCnDaFal8EmESLbA Received: from unknown (HELO p-us1-erheast.us1.avaya.com) ([135.11.50.53]) by p-us1-iereast-outbound.us1.avaya.com with ESMTP; 24 Aug 2011 16:02:40 -0400 Received: from dc-us1hcex1.us1.avaya.com (HELO DC-US1HCEX1.global.avaya.com) ([135.11.52.20]) by p-us1-erheast-out.us1.avaya.com with ESMTP; 24 Aug 2011 15:54:11 -0400 Received: from DC-US1MBEX4.global.avaya.com ([169.254.2.172]) by DC-US1HCEX1.global.avaya.com ([2002:870b:3414::870b:3414]) with mapi; Wed, 24 Aug 2011 16:02:40 -0400 From: "Worley, Dale R (Dale)" To: "gdb@sourceware.org" Date: Wed, 24 Aug 2011 20:02:00 -0000 Subject: Shared libraries and separate debugging files Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00106.txt.bz2 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 h= ow to set where the corresponding separate debugging files were searched for. In particula= r, the solib-absolute-prefix is applied *before* applying the rule "in a subdirect= ory whose name is identical to the leading directories of the executable's absolute f= ile name" I managed to work around this with a deep nest of special-purpose directori= es and symbolic links. Has anyone out there gotten separate debugging files to work with shared li= braries 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 de= bugging info directory". Is this idea related to the *list* of directories describ= ed for "set debug-file-directory"? Thanks for any help you can give me, Dale