* dwarf2read.c (zlib_decompress_section): Define abfd in the
authorCraig Silverstein <csilvers@google.com>
Mon, 21 Apr 2008 22:00:52 +0000 (22:00 +0000)
committerCraig Silverstein <csilvers@google.com>
Mon, 21 Apr 2008 22:00:52 +0000 (22:00 +0000)
!HAVE_ZLIB_H case.

gdb/ChangeLog
gdb/dwarf2read.c

index 34746a1fb484a01b730ba2577fffc01ff9276598..976fea1de246b90fb13285a3d049c932cf3340ce 100644 (file)
@@ -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>
 
        * symfile.c (syms_from_objfile): Don't warn if lowest loadable
index 4b08e4337ba6c5b1824fd2d9bf8b56f9a7a5d4e6..468ac870519db44b1be0a92b5b35f134ee70976f 100644 (file)
@@ -5295,12 +5295,12 @@ static void
 zlib_decompress_section (struct objfile *objfile, asection *sectp,
                          gdb_byte **outbuf, bfd_size_type *outsize)
 {
+  bfd *abfd = objfile->obfd;
 #ifndef HAVE_ZLIB_H
   error (_("Support for zlib-compressed DWARF data (from '%s') "
            "is disabled in this copy of GDB"),
          bfd_get_filename (abfd));
 #else
-  bfd *abfd = objfile->obfd;
   bfd_size_type compressed_size = bfd_get_section_size (sectp);
   gdb_byte *compressed_buffer = xmalloc (compressed_size);
   bfd_size_type uncompressed_size;