aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-17 18:19:25 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-17 18:19:25 +0000
commitc4a081e17239660420dbfed33542e865ce932ea4 (patch)
tree0bdeccbe4873348f142a7f8d3e9a08573a6116ea /gdb/rs6000-nat.c
parentf61b81b7c1ca5c2de10a9dd6294ced660ef92cbc (diff)
downloadgdb-c4a081e17239660420dbfed33542e865ce932ea4.zip
gdb-c4a081e17239660420dbfed33542e865ce932ea4.tar.gz
gdb-c4a081e17239660420dbfed33542e865ce932ea4.tar.bz2
* corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c, xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index db8c580..1d8b5ec 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -380,7 +380,7 @@ add_vmap(ldi)
abfd = bfd_fdopenr(objname, gnutarget, ldi->ldinfo_fd);
if (!abfd)
error("Could not open `%s' as an executable file: %s",
- objname, bfd_errmsg(bfd_error));
+ objname, bfd_errmsg(bfd_get_error ()));
/* make sure we have an object file */
@@ -415,7 +415,7 @@ add_vmap(ldi)
obj_err:
bfd_close(abfd);
error ("\"%s\": not in executable format: %s.",
- objname, bfd_errmsg(bfd_error));
+ objname, bfd_errmsg(bfd_get_error ()));
/*NOTREACHED*/
}
obj = allocate_objfile (vp->bfd, 0);
@@ -651,7 +651,7 @@ xcoff_relocate_core ()
{
bfd_err:
fprintf_filtered (gdb_stderr, "Couldn't get ldinfo from core file: %s\n",
- bfd_errmsg (bfd_error));
+ bfd_errmsg (bfd_get_error ()));
do_cleanups (old);
return;
}