From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21448 invoked by alias); 24 Sep 2002 04:45:11 -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 21441 invoked from network); 24 Sep 2002 04:45:10 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 24 Sep 2002 04:45:10 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id GAA18228; Tue, 24 Sep 2002 06:42:20 +0200 (IST) Date: Mon, 23 Sep 2002 21:45:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Alexander Larsson cc: Elena Zannoni , gdb@sources.redhat.com, Jim Blandy Subject: Re: External debug symbols In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-09/txt/msg00364.txt.bz2 On Mon, 23 Sep 2002, Alexander Larsson wrote: > > For the below, in theory is Ok, but I would suggest looking at the > > function openp() (in source.c) and how it is used in the solib_open() > > function in solib.c. The tricky part is going to be assuring that the > > filename is portable, i.e. working on windows/dos systems where the > > directory separator is '\'. Look at IS_DIR_SEPARATOR, IS_ABSOLUTE_PATH > > in the libiberty directory. > > I don't want to use openp() because i don't want the first availible file. > I want the first one that matches the checksum. I can't see how i can use > openp() to accomplish that. Nevertheless, the code that analizes file names must be portable, so it has to use IS_DIR_SEPARATOR, IS_ABSOLUTE_PATH, and the like instead of a literal '/' etc.