From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18961 invoked by alias); 24 Sep 2003 06:05:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18949 invoked from network); 24 Sep 2003 06:05:19 -0000 Received: from unknown (HELO virus-out-st.online.no) (193.212.240.200) by sources.redhat.com with SMTP; 24 Sep 2003 06:05:19 -0000 Received: from epostleser.online.no ([148.122.2.186] [148.122.2.186]) by virus-in.online.no with ESMTP for gdb@sources.redhat.com; Wed, 24 Sep 2003 08:05:18 +0200 X-WebMail-UserID: kristian.otnes@tevero.no Date: Wed, 24 Sep 2003 06:05:00 -0000 From: Kristian Otnes To: gdb@sources.redhat.com X-EXP32-SerialNo: 50000140 Subject: GDB/ELF/Cygwin source path problem Message-Id: <3F710C4C@epostleser.online.no> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00292.txt.bz2 I have been using Insight (with GDB embedded) for a cross target PowerPC-ELF configuration. That worked fine until recent updates in Cygwin (around Sept. 1 2003) environment. I now have problems with high level debugging due to that the path information in the source files in most cases are missing. The problem was introduced by simply updating Cygwin, ie. no changes in Insight/GDB. (Source paths are typically missing if the source file is located in the same directory as the compiler is running, something which is what our make system usually does. If the source file is located in for instance "../" relative to where the compiler is running, the source path is seen. I have checked the ELF file, and source paths are included for all files.) This is probably related to the symbol reader in GDB. I think that Cygwin has changed somewhat with respect to fstat() contents etc. Could anyone please inform me where to look in the GDB source files for adding some debug printout in order to fix the problem? I started looking into it, but got lost somewhere in there trying to grasp all the internal structures. Best regards Kris.