From 3b0b92207c8a65ad06a01a175124cd0b776f8963 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Tue, 31 Mar 1992 16:16:41 +0000 Subject: [PATCH] * 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/ChangeLog | 7 +++++++ gdb/elfread.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 838582dd61a..304f67457ac 100644 --- a/gdb/ChangeLog +++ b/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 diff --git a/gdb/elfread.c b/gdb/elfread.c index db66a2510e5..3788fb4a236 100644 --- a/gdb/elfread.c +++ b/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); -- 2.30.2