mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 21:34:42 +08:00
gdb/
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. Fix whitespace.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
|
||||||
|
Fix whitespace.
|
||||||
|
|
||||||
2010-04-24 Pedro Alves <pedro@codesourcery.com>
|
2010-04-24 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* defs.h: Adjust comment.
|
* defs.h: Adjust comment.
|
||||||
|
@ -264,12 +264,12 @@ cp_lookup_symbol_in_namespace (const char *namespace,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *concatenated_name = alloca (strlen (namespace) + 2 +
|
char *concatenated_name = alloca (strlen (namespace) + 2 +
|
||||||
strlen (name+ 1));
|
strlen (name) + 1);
|
||||||
strcpy (concatenated_name, namespace);
|
strcpy (concatenated_name, namespace);
|
||||||
strcat (concatenated_name, "::");
|
strcat (concatenated_name, "::");
|
||||||
strcat (concatenated_name, name);
|
strcat (concatenated_name, name);
|
||||||
return lookup_symbol_file (concatenated_name, block,
|
return lookup_symbol_file (concatenated_name, block,
|
||||||
domain,cp_is_anonymous (namespace));
|
domain, cp_is_anonymous (namespace));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user