OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [bfd/] [xsym.c] - Diff between revs 157 and 225

Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
/* xSYM symbol-file support for BFD.
/* xSYM symbol-file support for BFD.
   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
   Free Software Foundation, Inc.
   2009 Free Software Foundation, Inc.
 
 
   This file is part of BFD, the Binary File Descriptor library.
   This file is part of BFD, the Binary File Descriptor library.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
Line 17... Line 17...
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   MA 02110-1301, USA.  */
   MA 02110-1301, USA.  */
 
 
 
#include "alloca-conf.h"
#include "sysdep.h"
#include "sysdep.h"
#include "xsym.h"
#include "xsym.h"
#include "bfd.h"
#include "bfd.h"
#include "libbfd.h"
#include "libbfd.h"
 
 
Line 43... Line 44...
#define bfd_sym_bfd_gc_sections                     bfd_generic_gc_sections
#define bfd_sym_bfd_gc_sections                     bfd_generic_gc_sections
#define bfd_sym_bfd_merge_sections                  bfd_generic_merge_sections
#define bfd_sym_bfd_merge_sections                  bfd_generic_merge_sections
#define bfd_sym_bfd_is_group_section                bfd_generic_is_group_section
#define bfd_sym_bfd_is_group_section                bfd_generic_is_group_section
#define bfd_sym_bfd_discard_group                   bfd_generic_discard_group
#define bfd_sym_bfd_discard_group                   bfd_generic_discard_group
#define bfd_sym_section_already_linked              _bfd_generic_section_already_linked
#define bfd_sym_section_already_linked              _bfd_generic_section_already_linked
 
#define bfd_sym_bfd_define_common_symbol            bfd_generic_define_common_symbol
#define bfd_sym_bfd_link_hash_table_create          _bfd_generic_link_hash_table_create
#define bfd_sym_bfd_link_hash_table_create          _bfd_generic_link_hash_table_create
#define bfd_sym_bfd_link_hash_table_free            _bfd_generic_link_hash_table_free
#define bfd_sym_bfd_link_hash_table_free            _bfd_generic_link_hash_table_free
#define bfd_sym_bfd_link_add_symbols                _bfd_generic_link_add_symbols
#define bfd_sym_bfd_link_add_symbols                _bfd_generic_link_add_symbols
#define bfd_sym_bfd_link_just_syms                  _bfd_generic_link_just_syms
#define bfd_sym_bfd_link_just_syms                  _bfd_generic_link_just_syms
#define bfd_sym_bfd_final_link                      _bfd_generic_final_link
#define bfd_sym_bfd_final_link                      _bfd_generic_final_link
Line 1638... Line 1640...
            else
            else
              fprintf (f, "\"%.*s\"",
              fprintf (f, "\"%.*s\"",
                       bfd_sym_symbol_name (abfd, tinfo.nte_index)[0],
                       bfd_sym_symbol_name (abfd, tinfo.nte_index)[0],
                       &bfd_sym_symbol_name (abfd, tinfo.nte_index)[1]);
                       &bfd_sym_symbol_name (abfd, tinfo.nte_index)[1]);
          }
          }
        fprintf (f, " (TTE %lu)", value);
        fprintf (f, " (TTE %lu)", (unsigned long) value);
        break;
        break;
      }
      }
 
 
    case 2:
    case 2:
      fprintf (f, "pointer (0x%x) to ", type);
      fprintf (f, "pointer (0x%x) to ", type);
Line 1699... Line 1701...
          fprintf (f, "record (0x%x) of ", type);
          fprintf (f, "record (0x%x) of ", type);
        else
        else
          fprintf (f, "union (0x%x) of ", type);
          fprintf (f, "union (0x%x) of ", type);
 
 
        bfd_sym_fetch_long (buf, len, offset, &offset, &nrec);
        bfd_sym_fetch_long (buf, len, offset, &offset, &nrec);
        fprintf (f, "%lu elements: ", nrec);
        fprintf (f, "%lu elements: ", (unsigned long) nrec);
 
 
        for (i = 0; i < nrec; i++)
        for (i = 0; i < nrec; i++)
          {
          {
            bfd_sym_fetch_long (buf, len, offset, &offset, &eloff);
            bfd_sym_fetch_long (buf, len, offset, &offset, &eloff);
            fprintf (f, "\n                ");
            fprintf (f, "\n                ");
            fprintf (f, "offset %lu: ", eloff);
            fprintf (f, "offset %lu: ", (unsigned long) eloff);
            bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset);
            bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset);
          }
          }
        break;
        break;
      }
      }
 
 
Line 1733... Line 1735...
      else
      else
        fprintf (f, "\"%.*s\"",
        fprintf (f, "\"%.*s\"",
                 bfd_sym_symbol_name (abfd, value)[0],
                 bfd_sym_symbol_name (abfd, value)[0],
                 &bfd_sym_symbol_name (abfd, value)[1]);
                 &bfd_sym_symbol_name (abfd, value)[1]);
 
 
      fprintf (f, " (NTE %lu) with type ", value);
      fprintf (f, " (NTE %lu) with type ", (unsigned long) value);
      bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset);
      bfd_sym_print_type_information (abfd, f, buf, len, offset, &offset);
      break;
      break;
    }
    }
 
 
  default:
  default:

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.