From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1963 invoked by alias); 2 Dec 2003 17:17:00 -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 1947 invoked from network); 2 Dec 2003 17:17:00 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 2 Dec 2003 17:17:00 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1ARE8x-0002FP-OD; Tue, 02 Dec 2003 12:16:59 -0500 Date: Tue, 02 Dec 2003 17:17:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: "Gdb@Sources.Redhat.Com" Subject: Re: Interesting dwarf-2/shared lib problem. Message-ID: <20031202171659.GA2634@nevyn.them.org> Mail-Followup-To: Kris Warkentin , "Gdb@Sources.Redhat.Com" References: <024101c3b8ef$480138c0$0202040a@catdog> <20031202161802.GA16598@nevyn.them.org> <025701c3b8f4$6e1cfb70$0202040a@catdog> <028801c3b8f7$837f0b40$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <028801c3b8f7$837f0b40$0202040a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00021.txt.bz2 On Tue, Dec 02, 2003 at 12:12:49PM -0500, Kris Warkentin wrote: > > Ah...interesting. For the main object, the symtab points to > > c:\some_dir\main.c and the symtab->next points to just main.c. It's the > > main.c that gets caught and returned. In the solib, we only see the > > c:\some_lib\display.c so the FILENAME_CMP fails.. > > > > So you are correct, lookup_partial_symtab is failing. > > Looks like lbasename() in libiberty/lbasename.c is failing. The > IS_DIR_SEPARATOR macro isn't being defined for __CYGWIN__ so when we've > compiled something with dos style paths...you get the picture. I fixed it > in our source but someone might want to ponder this.... Blast, more out-of-sync copies of this. That one's my fault. This ought to come from include/filenames.h now. Could you file a report in the GCC bugzilla system about this and assign it to me? GCC is the master for this file. > Index: lbasename.c > =================================================================== > RCS file: /product/tools/gdb/libiberty/lbasename.c,v > retrieving revision 1.2 > diff -u -r1.2 lbasename.c > --- lbasename.c 6 Sep 2002 20:21:02 -0000 1.2 > +++ lbasename.c 2 Dec 2003 17:10:58 -0000 > @@ -46,7 +46,7 @@ > #endif > > #if defined (_WIN32) || defined (__MSDOS__) \ > - || defined (__DJGPP__) || defined (__OS2__) > + || defined (__DJGPP__) || defined (__OS2__) || defined (__CYGWIN__) > # define HAVE_DOS_BASED_FILE_SYSTEM > # ifndef DIR_SEPARATOR_2 > # define DIR_SEPARATOR_2 '\\' > > cheers, > > Kris > > > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer