forked from Imagelibrary/binutils-gdb
PR symtab/12704
* cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove. (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR and CP_ANONYMOUS_NAMESPACE_LEN. (cp_is_anonymous): Likewise. * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define. (CP_ANONYMOUS_NAMESPACE_LEN): Define. * dwarf2read.c (namespace_name): Likewise. (fixup_partial_die): Likewise. * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is seen in the input, keep it.
This commit is contained in:
@@ -1430,8 +1430,15 @@ decode_compound (char **argptr, int funfirstline,
|
||||
{
|
||||
/* PASS2: We'll keep getting here, until P points to one of the
|
||||
break characters, at which point we exit this loop. */
|
||||
if (*p && strchr (break_characters, *p) == NULL)
|
||||
p++;
|
||||
if (*p)
|
||||
{
|
||||
if (p[1] == '('
|
||||
&& strncmp (&p[1], CP_ANONYMOUS_NAMESPACE_STR,
|
||||
CP_ANONYMOUS_NAMESPACE_LEN) == 0)
|
||||
p += CP_ANONYMOUS_NAMESPACE_LEN;
|
||||
else if (strchr (break_characters, *p) == NULL)
|
||||
++p;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user