From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17143 invoked by alias); 3 Mar 2009 00:57:03 -0000 Received: (qmail 17135 invoked by uid 22791); 3 Mar 2009 00:57:02 -0000 X-SWARE-Spam-Status: No, hits=-1.0 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.186) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Mar 2009 00:56:54 +0000 Received: by nf-out-0910.google.com with SMTP id f5so610507nfh.48 for ; Mon, 02 Mar 2009 16:56:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.210.105.20 with SMTP id d20mr114594ebc.33.1236041811739; Mon, 02 Mar 2009 16:56:51 -0800 (PST) Date: Tue, 03 Mar 2009 00:57:00 -0000 Message-ID: Subject: how to determine location of source? From: Brendan Miller To: 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/msg00011.txt.bz2 According to documentation I read, debug binaries have the location of the source embedded in them. How do I extract this location from the binary? Can GDB do this? Also, is there an environment variable or config file that can control the directories that source is looked for in?