mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
2009-07-29 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/6817 * dbxread.c (read_dbx_symtab): Reduce stack use.
This commit is contained in:
parent
b0832eea40
commit
60f25dfd8c
@ -1,3 +1,8 @@
|
||||
2009-07-29 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
|
||||
PR gdb/6817
|
||||
* dbxread.c (read_dbx_symtab): Reduce stack use.
|
||||
|
||||
2009-07-29 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Fix gcc-4.5 HEAD warnings.
|
||||
|
@ -1689,7 +1689,7 @@ pos %d"),
|
||||
sym_name = NULL; /* pacify "gcc -Werror" */
|
||||
if (psymtab_language == language_cplus)
|
||||
{
|
||||
char *new_name, *name = alloca (p - namestring + 1);
|
||||
char *new_name, *name = xmalloc (p - namestring + 1);
|
||||
memcpy (name, namestring, p - namestring);
|
||||
name[p - namestring] = '\0';
|
||||
new_name = cp_canonicalize_string (name);
|
||||
@ -1700,6 +1700,7 @@ pos %d"),
|
||||
&objfile->objfile_obstack);
|
||||
xfree (new_name);
|
||||
}
|
||||
xfree (name);
|
||||
}
|
||||
|
||||
if (sym_len == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user