Browse Source

* elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.

* exec.c (build_section_table):  Don't abort if no sections.
* sparc-tdep.c (single_step):  Lint.
* utils.c (mrealloc):  Handle realloc (0, size) case here.
gdb-4_18-branch
John Gilmore 35 years ago
parent
commit
3b0b92207c
  1. 7
      gdb/ChangeLog
  2. 2
      gdb/elfread.c

7
gdb/ChangeLog

@ -1,3 +1,10 @@
Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
* elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
* exec.c (build_section_table): Don't abort if no sections.
* sparc-tdep.c (single_step): Lint.
* utils.c (mrealloc): Handle realloc (0, size) case here.
Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
* Makefile.in (alldeps.mak): Config files are now *.m[ht] as

2
gdb/elfread.c

@ -205,7 +205,7 @@ elf_symtab_read (abfd, addr, objfile)
if (storage_needed > 0)
{
symbol_table = (asymbol **) bfd_xmalloc (storage_needed);
symbol_table = (asymbol **) xmalloc (storage_needed);
back_to = make_cleanup (free, symbol_table);
number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);

Loading…
Cancel
Save