On 06/11/2011 12:52 AM, asmwarrior wrote:
Can you give me a direction that I can dig into the gdb's source?
This is almost certainly PR 12843:
http://sourceware.org/bugzilla/show_bug.cgi?id=12843
This was caused, I believe, by this patch hunk (for locate_first_half in
linespec.c), which I committed for c++/12750 on 2011-05-31:
@@ -1160,13 +1207,11 @@ locate_first_half (char **argptr, int
*is_quote_enclosed
break;
}
/* Check for the end of the first half of the linespec. End of
- line, a tab, a double colon or the last single colon, or a
- space. But if enclosed in double quotes we do not break on
- enclosed spaces. */
+ line, a tab, a colon or a space. But if enclosed in double
+ quotes we do not break on enclosed spaces. */
if (!*p
|| p[0] == '\t'
- || ((p[0] == ':')
- && ((p[1] == ':') || (strchr (p + 1, ':') == NULL)))
+ || (p[0] == ':')
|| ((p[0] == ' ') && !*is_quote_enclosed))
break;
if (p[0] == '.' && strchr (p, ':') == NULL)
I am intending to get to this, but it will probably not be until later
this coming week.
Keith