summaryrefslogtreecommitdiff
path: root/binutils/rdcoff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-04-07 04:34:50 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-04-07 04:34:50 +0000
commit98976a6a819e5b88f5e7a357ce5288bf14c043ba (patch)
tree79a0350ab1cc5f9bc2648a1a0da2179ed03c8748 /binutils/rdcoff.c
parent6a801f0da7d7fdd52289bd123f91aa2f2500c065 (diff)
downloadbinutils-redhat-98976a6a819e5b88f5e7a357ce5288bf14c043ba.tar.gz
A mostly cosmetic tidy up of warnings and error message reporting.
Diffstat (limited to 'binutils/rdcoff.c')
-rw-r--r--binutils/rdcoff.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/binutils/rdcoff.c b/binutils/rdcoff.c
index d1ee6e620f..e1385c7140 100644
--- a/binutils/rdcoff.c
+++ b/binutils/rdcoff.c
@@ -1,5 +1,5 @@
/* stabs.c -- Parse COFF debugging information
- Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1996, 98, 99, 2000 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
This file is part of GNU Binutils.
@@ -201,8 +201,7 @@ parse_coff_type (abfd, symbols, types, coff_symno, ntype, pauxent, useaux,
}
else
{
- fprintf (stderr, _("%s: parse_coff_type: Bad type code 0x%x\n"),
- program_name, ntype);
+ non_fatal (_("parse_coff_type: Bad type code 0x%x"), ntype);
return DEBUG_TYPE_NULL;
}
@@ -420,8 +419,8 @@ parse_coff_struct_type (abfd, symbols, types, ntype, pauxent, dhandle)
if (! bfd_coff_get_syment (abfd, sym, &syment))
{
- fprintf (stderr, _("%s: bfd_coff_get_syment failed: %s\n"),
- program_name, bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("bfd_coff_get_syment failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return DEBUG_TYPE_NULL;
}
@@ -436,8 +435,8 @@ parse_coff_struct_type (abfd, symbols, types, ntype, pauxent, dhandle)
{
if (! bfd_coff_get_auxent (abfd, sym, 0, &auxent))
{
- fprintf (stderr, _("%s: bfd_coff_get_auxent failed: %s\n"),
- program_name, bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("bfd_coff_get_auxent failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return DEBUG_TYPE_NULL;
}
psubaux = &auxent;
@@ -528,8 +527,8 @@ parse_coff_enum_type (abfd, symbols, types, pauxent, dhandle)
if (! bfd_coff_get_syment (abfd, sym, &syment))
{
- fprintf (stderr, _("%s: bfd_coff_get_syment failed: %s\n"),
- program_name, bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("bfd_coff_get_syment failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return DEBUG_TYPE_NULL;
}
@@ -709,8 +708,8 @@ parse_coff (abfd, syms, symcount, dhandle)
if (! bfd_coff_get_syment (abfd, sym, &syment))
{
- fprintf (stderr, _("%s: bfd_coff_get_syment failed: %s\n"),
- program_name, bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("bfd_coff_get_syment failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return false;
}
@@ -729,8 +728,8 @@ parse_coff (abfd, syms, symcount, dhandle)
{
if (! bfd_coff_get_auxent (abfd, sym, 0, &auxent))
{
- fprintf (stderr, _("%s: bfd_coff_get_auxent failed: %s\n"),
- program_name, bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("bfd_coff_get_auxent failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return false;
}
paux = &auxent;
@@ -795,8 +794,8 @@ parse_coff (abfd, syms, symcount, dhandle)
{
if (fnname == NULL)
{
- fprintf (stderr, _("%s: %ld: .bf without preceding function\n"),
- program_name, this_coff_symno);
+ non_fatal (_("%ld: .bf without preceding function"),
+ this_coff_symno);
return false;
}
@@ -845,8 +844,7 @@ parse_coff (abfd, syms, symcount, dhandle)
{
if (! within_function)
{
- fprintf (stderr, _("%s: %ld: unexpected .ef\n"),
- program_name, this_coff_symno);
+ non_fatal (_("%ld: unexpected .ef\n"), this_coff_symno);
return false;
}