diff options
author | John Gilmore <gnu@cygnus> | 1992-03-31 16:16:41 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-03-31 16:16:41 +0000 |
commit | 3b0b92207c8a65ad06a01a175124cd0b776f8963 (patch) | |
tree | 91c4d2b0debac197fcec8140d13c13da3e197050 /gdb/elfread.c | |
parent | 079b2abe97438103d5e54956d62db15e7918fdbe (diff) | |
download | gdb-3b0b92207c8a65ad06a01a175124cd0b776f8963.zip gdb-3b0b92207c8a65ad06a01a175124cd0b776f8963.tar.gz gdb-3b0b92207c8a65ad06a01a175124cd0b776f8963.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index db66a25..3788fb4 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); |