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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [binutils/] [sysdump.c] - Diff between revs 15 and 163

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 15 Rev 163
Line 1... Line 1...
/* Sysroff object format dumper.
/* Sysroff object format dumper.
   Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2009
   Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007,
   Free Software Foundation, Inc.
   2009, 2011  Free Software Foundation, Inc.
 
 
   This file is part of GNU Binutils.
   This file is part of GNU Binutils.
 
 
   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 61... Line 61...
  int oc = *idx / 8;
  int oc = *idx / 8;
  char *r;
  char *r;
  int b = size;
  int b = size;
 
 
  if (b >= max)
  if (b >= max)
    return "*undefined*";
    return _("*undefined*");
 
 
  if (b == 0)
  if (b == 0)
    {
    {
      /* Got to work out the length of the string from self.  */
      /* Got to work out the length of the string from self.  */
      b = ptr[oc++];
      b = ptr[oc++];
Line 132... Line 132...
 
 
  for (i = 0; i < size; i++)
  for (i = 0; i < size; i++)
    sum += ptr[i];
    sum += ptr[i];
 
 
  if ((sum & 0xff) != 0xff)
  if ((sum & 0xff) != 0xff)
    printf ("SUM IS %x\n", sum);
    printf (_("SUM IS %x\n"), sum);
 
 
  if (dump)
  if (dump)
    dh (ptr, size);
    dh (ptr, size);
 
 
  return size;
  return size;
Line 498... Line 498...
        sysroff_print_dds_out (&dummy);
        sysroff_print_dds_out (&dummy);
      }
      }
      break;
      break;
 
 
    default:
    default:
      printf ("GOT A %x\n", c);
      printf (_("GOT A %x\n"), c);
      return 0;
      return 0;
      break;
      break;
    }
    }
 
 
  return 1;
  return 1;
Line 516... Line 516...
 
 
static void
static void
must (int x)
must (int x)
{
{
  if (!getone (x))
  if (!getone (x))
    printf ("WANTED %x!!\n", x);
    printf (_("WANTED %x!!\n"), x);
}
}
 
 
static void
static void
tab (int i, char *s)
tab (int i, char *s)
{
{
Line 534... Line 534...
}
}
 
 
static void
static void
dump_symbol_info (void)
dump_symbol_info (void)
{
{
  tab (1, "SYMBOL INFO");
  tab (1, _("SYMBOL INFO"));
 
 
  while (opt (IT_dsy_CODE))
  while (opt (IT_dsy_CODE))
    {
    {
      if (opt (IT_dty_CODE))
      if (opt (IT_dty_CODE))
        {
        {
Line 552... Line 552...
}
}
 
 
static void
static void
derived_type (void)
derived_type (void)
{
{
  tab (1, "DERIVED TYPE");
  tab (1, _("DERIVED TYPE"));
 
 
  while (1)
  while (1)
    {
    {
      if (opt (IT_dpp_CODE))
      if (opt (IT_dpp_CODE))
        {
        {
Line 609... Line 609...
module (void)
module (void)
{
{
  int c = 0;
  int c = 0;
  int l = 0;
  int l = 0;
 
 
  tab (1, "MODULE***\n");
  tab (1, _("MODULE***\n"));
 
 
  do
  do
    {
    {
      c = getc (file);
      c = getc (file);
      ungetc (c, file);
      ungetc (c, file);

powered by: WebSVN 2.1.0

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