~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to bfd/coffgen.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
/* Get the BFD section from a COFF symbol section number.  */
308
308
 
309
309
asection *
310
 
coff_section_from_bfd_index (bfd *abfd, int index)
 
310
coff_section_from_bfd_index (bfd *abfd, int section_index)
311
311
{
312
312
  struct bfd_section *answer = abfd->sections;
313
313
 
314
 
  if (index == N_ABS)
 
314
  if (section_index == N_ABS)
315
315
    return bfd_abs_section_ptr;
316
 
  if (index == N_UNDEF)
 
316
  if (section_index == N_UNDEF)
317
317
    return bfd_und_section_ptr;
318
 
  if (index == N_DEBUG)
 
318
  if (section_index == N_DEBUG)
319
319
    return bfd_abs_section_ptr;
320
320
 
321
321
  while (answer)
322
322
    {
323
 
      if (answer->target_index == index)
 
323
      if (answer->target_index == section_index)
324
324
        return answer;
325
325
      answer = answer->next;
326
326
    }