From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28542 invoked by alias); 18 Oct 2002 22:34:45 -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 28464 invoked from network); 18 Oct 2002 22:34:44 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 18 Oct 2002 22:34:44 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g9IMDhw13462 for ; Fri, 18 Oct 2002 18:13:43 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g9IMYbl30655 for ; Fri, 18 Oct 2002 18:34:38 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g9IMYbD06063 for ; Fri, 18 Oct 2002 15:34:37 -0700 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4E5483E0F; Fri, 18 Oct 2002 18:34:38 -0400 (EDT) Message-ID: <3DB08C7E.1020908@redhat.com> Date: Fri, 18 Oct 2002 15:34:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Johansen Cc: gdb@sources.redhat.com Subject: Re: GDB under Cygwin: spaces in source path References: <1a6501c26cab$2f458d90$6200a8c0@gregjetc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00138.txt.bz2 > Sorry if this is a repost: > > I am using GDB5.0 under cygwin on a Windows PC. I have some sources in a > directory path that contains spaces. GDB will let me cd to such a > directory: "cd /cygdrive/c/test space", but I cannot figure out how to > specify a space-containing directory with the "directory" command. I have > tried quotes and tried using backslash to escape the spaces, but GDB seems > to replace the space character with $cwd(see log below). > > Is there some way to specify a source path that includes spaces? This is, unfortunatly, a very very long standing bug. The parser needs to be changed so that spaces, in file names, can be escaped. http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=535 Andrew > ======================================================= > $ powerpc-eabi-gdb -fullname > GNU gdb 5.0 > Copyright 2000 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License > This GDB was configured as "--host=i686-pc-cygwin --target=powerpc-eabi". > > (gdb) cd /cygdrive/c/test space > Working directory /cygdrive/c/test space. > (gdb) directory > Source directories searched: $cdir:$cwd > > (gdb) directory /cygdrive/c/test space > Warning: /cygdrive/c/test: No such file or directory. > Warning: /cygdrive/c/test space/space: No such file or directory. > Source directories searched: /cygdrive/c/test:/cygdrive/c/test > space/space:$cdir > :$cwd > > (gdb) directory > Source directories searched: $cdir:$cwd > > (gdb) directory /cygdrive/c/test\ space > Warning: /cygdrive/c/test: No such file or directory. > Warning: /cygdrive/c/test space/space: No such file or directory. > Source directories searched: /cygdrive/c/test:/cygdrive/c/test > space/space:$cdir > :$cwd > > > >