From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7857 invoked by alias); 3 Mar 2009 02:22:08 -0000 Received: (qmail 7849 invoked by uid 22791); 3 Mar 2009 02:22:07 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Mar 2009 02:21:57 +0000 Received: by nf-out-0910.google.com with SMTP id f5so614157nfh.48 for ; Mon, 02 Mar 2009 18:21:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.210.66.1 with SMTP id o1mr3758036eba.16.1236046914929; Mon, 02 Mar 2009 18:21:54 -0800 (PST) In-Reply-To: <20090303015239.GO3632@adacore.com> References: <20090303010451.GM3632@adacore.com> <20090303015239.GO3632@adacore.com> Date: Tue, 03 Mar 2009 02:22:00 -0000 Message-ID: Subject: Re: Fwd: how to determine location of source? From: Brendan Miller To: Joel Brobecker Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2009-03/txt/msg00015.txt.bz2 No big deal. There are still parts of the manual I haven't read, although I thought I'd checked out the stuff most relevant to my question. On Mon, Mar 2, 2009 at 5:52 PM, Joel Brobecker wrote: > So, doesn't "info sources" give you the kind of info you're looking > for. It's a little verbose, but I don't do see anything that's > directly accessible. Otherwise, you have "maintenance print > psymbols PSYMS" that also gives you something you can use, but > it's printed on a separate file, and contains even more info. Hmm... info sources and maintenance print psymbols PSYMS gives me relative, not absolute paths. Maybe that's all that's encoded into my binaries by our build process, which would be cumbersome from my purposes since I have differen't so's built in different directories. I'm not really sure how source path encoding was handled by GCC, but the examples in the manual made me think that absolute paths were the norm. Thanks, Brendan