From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15271 invoked by alias); 24 Sep 2003 20:09:26 -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 15264 invoked from network); 24 Sep 2003 20:09:25 -0000 Received: from unknown (HELO concert.shout.net) (204.253.184.25) by sources.redhat.com with SMTP; 24 Sep 2003 20:09:25 -0000 Received: from duracef.shout.net (duracef.shout.net [204.253.184.12]) by concert.shout.net (8.12.10/8.12.10) with ESMTP id h8OK9Ps5006694; Wed, 24 Sep 2003 15:09:25 -0500 Received: from duracef.shout.net (localhost [127.0.0.1]) by duracef.shout.net (8.12.10/8.12.9) with ESMTP id h8OK9OVd016929; Wed, 24 Sep 2003 15:09:24 -0500 Received: (from mec@localhost) by duracef.shout.net (8.12.10/8.12.9/Submit) id h8OK9Op3016928; Wed, 24 Sep 2003 16:09:24 -0400 Date: Wed, 24 Sep 2003 20:09:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200309242009.h8OK9Op3016928@duracef.shout.net> To: gdb@sources.redhat.com, kristian.otnes@tevero.no Subject: RE: GDB/ELF/Cygwin source path problem X-SW-Source: 2003-09/txt/msg00308.txt.bz2 Hi Kris, Try coff_symfile_read in coffread.c or elf_symfile_read in elfread.c. I thought Cygwin was still a COFF platform but if you say it's ELF, then elfread.c would read it. > The thing was that the same ELF file gave different results > with Cygwin version 1.3.22-1 compared to the current > 1.5.x-y versions available. Okay, that mostly rules out the idea that gcc is putting strange information into the file. > Anyway, what I wanted was to do some old fashioned debugging > with rebuilding Insight (and GDB) with some printf's inside to > see what was going on inside the symbol reader. And if anyone > knows whereabouts source file names and their paths are read, > I would appreciate a tip. It's not that hard to debug gdb with gdb. The procedure is: % gdb gdb (gdb) set prompt [top] [top] set arge myfile.exe [top] break elf_symfile_read [top] run I've never done it with insight so I don't know how the gui plays with this. Michael C