aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers@google.com>2008-04-21 22:00:52 +0000
committerCraig Silverstein <csilvers@google.com>2008-04-21 22:00:52 +0000
commitef72380d9463a011b94ee027ae8de963fc8ee5f1 (patch)
tree99a7cc2d26fc19812b55f5fae3276cc9fc03df11
parentc9b2f845a54944b7da65614facae0541c80a0999 (diff)
downloadgdb-ef72380d9463a011b94ee027ae8de963fc8ee5f1.zip
gdb-ef72380d9463a011b94ee027ae8de963fc8ee5f1.tar.gz
gdb-ef72380d9463a011b94ee027ae8de963fc8ee5f1.tar.bz2
* dwarf2read.c (zlib_decompress_section): Define abfd in the
!HAVE_ZLIB_H case.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34746a1..976fea1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4b08e43..468ac87 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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;