How to set a breakpoint in file, which name has spaces?

Mark Kettenis mark.kettenis@xs4all.nl
Sat Aug 12 14:22:00 GMT 2006


> From: Andreas Schwab <schwab@suse.de>
> Date: Sat, 12 Aug 2006 14:31:33 +0200
> 
> Mark Kettenis <mark.kettenis@xs4all.nl> writes:
> 
> >> Date: Fri, 11 Aug 2006 15:55:40 +0300
> >> From: Eli Zaretskii <eliz@gnu.org>
> >> 
> >> > Date: Thu, 10 Aug 2006 22:26:55 -0700
> >> > From: Nikolay Molchanov <Nikolay.Molchanov@Sun.COM>
> >> > Cc: gdb@sourceware.org
> >> > 
> >> > I hope we will never need to set a breakpoint in a file,
> >> > which name has double quotes :-)
> >> 
> >> MS-Windows filesystems don't allow file names with double quotes, so
> >> you needn't worry about that.
> >
> > But POSIX systems do allow it:
> 
> s/POSIX/UNIX/
> 
> > $ touch \"
> > $ ls -l \"
> > -rw-r--r--   1 kettenis  kettenis          0 Aug 12 13:41 "
> 
> Just because it is possible does not mean it is useful.  Once you start
> using quotes or other meta characters in file names gdb will be the least
> of your problems.

Sure, but nobody in their right mind would include spaces in their
filenames either.

Mark



More information about the Gdb mailing list