[RFA] 12843
Keith Seitz
keiths@redhat.com
Wed Aug 31 18:17:00 GMT 2011
On 08/26/2011 11:22 AM, Tom Tromey wrote:
>>>>>> "Keith" == Keith Seitz<keiths@redhat.com> writes:
>
> Keith> PR gdb/12843
> Keith> * linespec.c (locate_first_half): Do not stop on a colon
> Keith> if the next character is a directory separator character.
>
> Ok.
>
> I suspect we should tighten this further so that only drive letters work
> and not oddball stuff like "break file:/whatever.c:73". What do you
> think?
I think we can safely do that -- especially since '/' is verboten on
unix. So in that case, "file:/whatever.c" parses to the file
"whatever.c" in the directory "file:", and we want to keep the whole
thing together anyway.
Mind you, this doesn't solve the general case of colons in filenames,
which is still broken.
Note: I've renamed the test to linespecs.exp, hoping that this file will
grow into a full-fledged specification for future linespec work. Which I
hope to do sometime soon. :-)
How about this? [Tested on x86_64-linux and i686-pc-cygwin (with much
pain).]
Keith
ChangeLog
2011-08-30 Keith Seitz <keiths@redhat.com>
PR gdb/12843
* linespec.c (locate_first_half): Keep ':' if it looks
like it could be part of a drive letter or filename.
testsuite/ChangeLog
2011-08-30 Keith Seitz <keiths@redhat.com>
PR gdb/12843
* gdb.base/linespecs.exp: New file.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12843-2.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110831/620068bf/attachment.ksh>
More information about the Gdb-patches
mailing list