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

Andreas Schwab schwab@suse.de
Sat Aug 12 12:31:00 GMT 2006


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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb mailing list