aboutsummaryrefslogtreecommitdiff
path: root/binutils/wrstabs.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-07 04:34:50 +0000
committerAlan Modra <amodra@gmail.com>2000-04-07 04:34:50 +0000
commit37cc8ec1be0959c1878e79fd2baed888da4a2775 (patch)
tree3f0c84ec0246e8da024b05540c58b082c583dd31 /binutils/wrstabs.c
parentd311cd50fc8c3fc9b344cc2a893572d6c0ae44d7 (diff)
downloadgdb-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/wrstabs.c')
-rw-r--r--binutils/wrstabs.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/binutils/wrstabs.c b/binutils/wrstabs.c
index 8b51587..c74af2e 100644
--- a/binutils/wrstabs.c
+++ b/binutils/wrstabs.c
@@ -1,5 +1,5 @@
/* wrstabs.c -- Output stabs debugging information
- Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1996, 97, 98, 99, 2000 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
This file is part of GNU Binutils.
@@ -363,8 +363,8 @@ stab_write_symbol (info, type, desc, value, string)
h = string_hash_lookup (&info->strhash, string, true, true);
if (h == NULL)
{
- fprintf (stderr, _("string_hash_lookup failed: %s\n"),
- bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("string_hash_lookup failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return false;
}
if (h->index != -1)
@@ -505,8 +505,8 @@ write_stabs_in_sections_debugging_info (abfd, dhandle, psyms, psymsize,
if (! bfd_hash_table_init (&info.strhash.table, string_hash_newfunc)
|| ! bfd_hash_table_init (&info.typedef_hash.table, string_hash_newfunc))
{
- fprintf (stderr, "bfd_hash_table_init_failed: %s\n",
- bfd_errmsg (bfd_get_error ()));
+ non_fatal ("bfd_hash_table_init_failed: %s",
+ bfd_errmsg (bfd_get_error ()));
return false;
}
@@ -663,7 +663,7 @@ stab_int_type (p, size, unsignedp)
if (size <= 0 || (size > sizeof (long) && size != 8))
{
- fprintf (stderr, _("stab_int_type: bad size %u\n"), size);
+ non_fatal (_("stab_int_type: bad size %u"), size);
return false;
}
@@ -1464,9 +1464,8 @@ stab_struct_field (p, name, bitpos, bitsize, visibility)
{
bitsize = size * 8;
if (bitsize == 0)
- fprintf (stderr,
- _("%s: warning: unknown size for field `%s' in struct\n"),
- bfd_get_filename (info->abfd), name);
+ non_fatal (_("%s: warning: unknown size for field `%s' in struct"),
+ bfd_get_filename (info->abfd), name);
}
sprintf (n, "%s%s:%s%s,%ld,%ld;", info->type_stack->fields, name, vis, s,
@@ -2025,8 +2024,8 @@ stab_typdef (p, name)
h = string_hash_lookup (&info->typedef_hash, name, true, false);
if (h == NULL)
{
- fprintf (stderr, _("string_hash_lookup failed: %s\n"),
- bfd_errmsg (bfd_get_error ()));
+ non_fatal (_("string_hash_lookup failed: %s"),
+ bfd_errmsg (bfd_get_error ()));
return false;
}