gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] GDB under Cygwin: spaces in source path


From: Greg Johansen
Subject: [Gdb] GDB under Cygwin: spaces in source path
Date: Sat, 5 Oct 2002 00:06:46 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]