This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4 6/9] Explicit locations: introduce explicit locations


On 05/19/2015 03:09 PM, Pedro Alves wrote:

>> (gdb) fil ~/tmp/file\ with\ spaces
>> Reading symbols from ~/tmp/file with spaces...done.
>> (gdb) b -source file with spaces.c -line 4
> 
> Eh, do we handle files with spaces without requiring quoting
> anywhere else?  The potential for ambiguity makes me a bit nervous
> to claim we support that.
> 

The linespec parser doesn't normally require quoting:

Reading symbols from ~/tmp/file with spaces...done.
(gdb) b file with spaces.c:3
Breakpoint 1 at 0x4004fa: file /home/keiths/tmp/file with spaces.c, line 3.

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]