summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
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
commitfedca60a077e7d08fb40dd6adfe6cbc6506f2e5b (patch)
tree8cc6edfeeeddfba6622cdd569a62c1303ada10d7 /gdb/dwarf2read.c
parentf45ef568938ceca244067ce0deaced2a1d05a484 (diff)
downloadgdb-fedca60a077e7d08fb40dd6adfe6cbc6506f2e5b.tar.gz
* dwarf2read.c (zlib_decompress_section): Define abfd in the
!HAVE_ZLIB_H case.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4b08e4337ba..468ac870519 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;