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: [RFA] More linespec quoting "fixes"


On 02/26/2010 03:02 PM, Tom Tromey wrote:
My real question is whether we want to do this.  We've talked a little
bit about rewriting linespec to be less horrible... will supporting more
syntax make this too hard?  I'm open to breaking compatibility a bit --
but I think there is a limit to what we can do there, based on what is
documented.

I don't really have an answer for this. This is one of those areas where the documentation doesn't explain everything in detail.


In an ideal world, I would get rid of quoting entirely (or at least try), but that's a debate for another time. With this patch, I was simply attempting to address the issue that single quotes are not handled in the filename/"first half" of the linespec, and I could find no reason why they should not. [And if we keep quoting in linespecs, I cannot think why we would not allow any part of them to be quoted -- consider filenames with spaces (yich).]

In the end, I was attempting to rectify this behavior with CVS HEAD:

(gdb) list 'foo.c':1
No source file named foo.c'.

Keith


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