mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* dwarf2read.c (zlib_decompress_section): Define abfd in the
!HAVE_ZLIB_H case.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-04-21 Craig Silverstein <csilvers@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (zlib_decompress_section): Define abfd in the
|
||||||
|
!HAVE_ZLIB_H case.
|
||||||
|
|
||||||
2008-04-21 Pedro Alves <pedro@codesourcery.com>
|
2008-04-21 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* symfile.c (syms_from_objfile): Don't warn if lowest loadable
|
* symfile.c (syms_from_objfile): Don't warn if lowest loadable
|
||||||
|
@ -5295,12 +5295,12 @@ static void
|
|||||||
zlib_decompress_section (struct objfile *objfile, asection *sectp,
|
zlib_decompress_section (struct objfile *objfile, asection *sectp,
|
||||||
gdb_byte **outbuf, bfd_size_type *outsize)
|
gdb_byte **outbuf, bfd_size_type *outsize)
|
||||||
{
|
{
|
||||||
|
bfd *abfd = objfile->obfd;
|
||||||
#ifndef HAVE_ZLIB_H
|
#ifndef HAVE_ZLIB_H
|
||||||
error (_("Support for zlib-compressed DWARF data (from '%s') "
|
error (_("Support for zlib-compressed DWARF data (from '%s') "
|
||||||
"is disabled in this copy of GDB"),
|
"is disabled in this copy of GDB"),
|
||||||
bfd_get_filename (abfd));
|
bfd_get_filename (abfd));
|
||||||
#else
|
#else
|
||||||
bfd *abfd = objfile->obfd;
|
|
||||||
bfd_size_type compressed_size = bfd_get_section_size (sectp);
|
bfd_size_type compressed_size = bfd_get_section_size (sectp);
|
||||||
gdb_byte *compressed_buffer = xmalloc (compressed_size);
|
gdb_byte *compressed_buffer = xmalloc (compressed_size);
|
||||||
bfd_size_type uncompressed_size;
|
bfd_size_type uncompressed_size;
|
||||||
|
Reference in New Issue
Block a user