aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-17 18:10:18 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-17 18:10:18 +0000
commit7681bc7b30b1ec5006484d892121ce6c0059442a (patch)
treef7a46190dd03ed59ff85398c89c495290c7b85eb /binutils
parentd1ad85a6e6eead5ba7a2950c3d63f39924397353 (diff)
downloadgdb-7681bc7b30b1ec5006484d892121ce6c0059442a.zip
gdb-7681bc7b30b1ec5006484d892121ce6c0059442a.tar.gz
gdb-7681bc7b30b1ec5006484d892121ce6c0059442a.tar.bz2
* ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
size.c: Use bfd_get_error and bfd_set_error and new error names.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/nlmconv.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9f445b9..dc1d5e7 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 17 09:28:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
+
+ * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
+ size.c: Use bfd_get_error and bfd_set_error and new error names.
+
Fri Feb 11 15:54:51 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 14e444f..5293c08 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -174,6 +174,7 @@ main (argc, argv)
char **matching;
program_name = argv[0];
+ xmalloc_set_program_name (program_name);
bfd_init ();
@@ -300,7 +301,7 @@ main (argc, argv)
if (! bfd_check_format_matches (inbfd, bfd_object, &matching))
{
bfd_nonfatal (input_file);
- if (bfd_error == file_ambiguously_recognized)
+ if (bfd_get_error () == bfd_error_file_ambiguously_recognized)
{
list_matching_formats (matching);
free (matching);
@@ -710,7 +711,7 @@ main (argc, argv)
|| ! bfd_check_format (sharedbfd, bfd_object))
{
fprintf (stderr, "%s:%s: %s\n", program_name, sharelib_file,
- bfd_errmsg (bfd_error));
+ bfd_errmsg (bfd_get_error ()));
sharelib_file = NULL;
}
else