From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4763 invoked by alias); 10 Dec 2002 20:32:27 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4724 invoked from network); 10 Dec 2002 20:32:25 -0000 Received: from unknown (HELO odin.inter.net.il) (192.114.186.10) by sources.redhat.com with SMTP; 10 Dec 2002 20:32:25 -0000 Received: from zaretsky ([80.230.195.236]) by odin.inter.net.il (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id AVF38318; Tue, 10 Dec 2002 22:32:06 +0200 (IST) Date: Tue, 10 Dec 2002 12:43:00 -0000 From: "Eli Zaretskii" To: ezannoni@redhat.com Message-Id: <2950-Tue10Dec2002223056+0200-eliz@is.elta.co.il> CC: jimb@redhat.com, gdb-patches@sources.redhat.com In-reply-to: <15861.29951.564644.347349@localhost.redhat.com> (message from Elena Zannoni on Tue, 10 Dec 2002 00:00:47 -0500) Subject: Re: RFC: support debug info in separate files Reply-to: Eli Zaretskii References: <15861.29951.564644.347349@localhost.redhat.com> X-SW-Source: 2002-12/txt/msg00340.txt.bz2 > From: Elena Zannoni > Date: Tue, 10 Dec 2002 00:00:47 -0500 > > > + strcat (debugfile, ".debug/"); > [...] > > > + strcat (debugfile, "/"); > > [...] > > + strcat (debugfile, "/"); > > Should these be DIR_SEPARATOR instead? I guess DJGPP doesn't care though. Neither DJGPP nor any other DOS/Windows port of GDB should care, since DOS and Windows system calls support both flavors of slashes alike. In general, DIR_SEPARATOR should be used when testing characters to be separators, but there's no need to do that when constructing file names.