From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31370 invoked by alias); 2 Dec 2003 17:11:48 -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 31363 invoked from network); 2 Dec 2003 17:11:48 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 2 Dec 2003 17:11:48 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id MAA14817; Tue, 2 Dec 2003 12:24:36 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id MAA12877; Tue, 2 Dec 2003 12:11:47 -0500 Message-ID: <028801c3b8f7$837f0b40$0202040a@catdog> From: "Kris Warkentin" To: "Kris Warkentin" , "Daniel Jacobowitz" Cc: "Gdb@Sources.Redhat.Com" References: <024101c3b8ef$480138c0$0202040a@catdog> <20031202161802.GA16598@nevyn.them.org> <025701c3b8f4$6e1cfb70$0202040a@catdog> Subject: Re: Interesting dwarf-2/shared lib problem. Date: Tue, 02 Dec 2003 17:11:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-12/txt/msg00020.txt.bz2 > 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.... 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