mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-16 08:36:43 +00:00
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/10457 * elfread.c (elf_symtab_read): Don't use alloca in a loop.
This commit is contained in:
parent
da082f1797
commit
1800f484a2
@ -1,3 +1,8 @@
|
||||
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
|
||||
PR gdb/10457
|
||||
* elfread.c (elf_symtab_read): Don't use alloca in a loop.
|
||||
|
||||
2009-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* i386-nat.c (i386_stopped_by_hwbp): Remove.
|
||||
|
@ -535,7 +535,7 @@ elf_symtab_read (struct objfile *objfile, int type,
|
||||
|
||||
if (len > 4 && strcmp (sym->name + len - 4, "@plt") == 0)
|
||||
{
|
||||
char *base_name = alloca (len - 4 + 1);
|
||||
char *base_name = xmalloc (len - 4 + 1);
|
||||
struct minimal_symbol *mtramp;
|
||||
|
||||
memcpy (base_name, sym->name, len - 4);
|
||||
@ -543,6 +543,7 @@ elf_symtab_read (struct objfile *objfile, int type,
|
||||
mtramp = record_minimal_symbol (base_name, symaddr,
|
||||
mst_solib_trampoline,
|
||||
sym->section, objfile);
|
||||
xfree (base_name);
|
||||
if (mtramp)
|
||||
{
|
||||
MSYMBOL_SIZE (mtramp) = MSYMBOL_SIZE (msym);
|
||||
|
Loading…
Reference in New Issue
Block a user