From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16126 invoked by alias); 5 Oct 2002 20:09:59 -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 16117 invoked from network); 5 Oct 2002 20:09:58 -0000 Received: from unknown (HELO smtp-server4.tampabay.rr.com) (65.32.1.45) by sources.redhat.com with SMTP; 5 Oct 2002 20:09:58 -0000 Received: from gregjetc (653275hfc100.tampabay.rr.com [65.32.75.100]) by smtp-server4.tampabay.rr.com (8.12.2/8.12.2) with SMTP id g95K9llb021357 for ; Sat, 5 Oct 2002 16:09:47 -0400 (EDT) Message-ID: <1a6501c26cab$2f458d90$6200a8c0@gregjetc> From: "Greg Johansen" To: Subject: GDB under Cygwin: spaces in source path Date: Sat, 05 Oct 2002 13:09: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 V5.50.4807.1700 X-SW-Source: 2002-10/txt/msg00058.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? thanks...gregj ======================================================= $ 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