~ubuntu-branches/debian/sid/gdb/sid

« back to all changes in this revision

Viewing changes to bfd/compress.c

  • Committer: Package Import Robot
  • Author(s): Hector Oron
  • Date: 2012-01-28 00:41:20 UTC
  • mfrom: (1.4.9) (5.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20120128004120-bar1h77ark622noi
Tags: 7.4really-1
* New upstream release:
  - Many Python scripting improvements
  - Better support for ambiguous linespecs
  - Masked watchpoints
  - Tracepoint support improvements
  - Support for Texas Instruments TMS320C6x (tic6x-*-*)
  - A Renesas RL78 simulator (rl78-*-elf)
  - Some minor Remote protocol extensions and GDB/MI changes
* Temporarily disable gdb-multiarch and gdb-dbg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Compressed section support (intended for debug sections).
2
 
   Copyright 2008, 2010
 
2
   Copyright 2008, 2010, 2011
3
3
   Free Software Foundation, Inc.
4
4
 
5
5
   This file is part of BFD, the Binary File Descriptor library.
158
158
bfd_boolean
159
159
bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
160
160
{
161
 
  bfd_size_type sz = sec->rawsize ? sec->rawsize : sec->size;
 
161
  bfd_size_type sz;
162
162
  bfd_byte *p = *ptr;
163
163
#ifdef HAVE_ZLIB_H
164
164
  bfd_boolean ret;
169
169
  bfd_byte *uncompressed_buffer;
170
170
#endif
171
171
 
 
172
  if (abfd->direction != write_direction && sec->rawsize != 0)
 
173
    sz = sec->rawsize;
 
174
  else
 
175
    sz = sec->size;
172
176
  if (sz == 0)
173
177
    return TRUE;
174
178