diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-07 04:34:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-07 04:34:50 +0000 |
commit | 37cc8ec1be0959c1878e79fd2baed888da4a2775 (patch) | |
tree | 3f0c84ec0246e8da024b05540c58b082c583dd31 /binutils/rdcoff.c | |
parent | d311cd50fc8c3fc9b344cc2a893572d6c0ae44d7 (diff) | |
download | gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.zip gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.gz gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.bz2 |
A mostly cosmetic tidy up of warnings and error message reporting.
Diffstat (limited to 'binutils/rdcoff.c')
-rw-r--r-- | binutils/rdcoff.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/binutils/rdcoff.c b/binutils/rdcoff.c index d1ee6e6..e1385c7 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; } |