From c4a081e17239660420dbfed33542e865ce932ea4 Mon Sep 17 00:00:00 2001 From: David MacKenzie Date: Thu, 17 Feb 1994 18:19:25 +0000 Subject: * 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. --- gdb/xcoffexec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/xcoffexec.c') diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c index fb2aea1..95a713a 100644 --- a/gdb/xcoffexec.c +++ b/gdb/xcoffexec.c @@ -149,25 +149,25 @@ exec_file_command (filename, from_tty) exec_bfd = bfd_fdopenr(scratch_pathname, gnutarget, scratch_chan); if (!exec_bfd) error("Could not open `%s' as an executable file: %s", - scratch_pathname, bfd_errmsg(bfd_error)); + scratch_pathname, bfd_errmsg(bfd_get_error ())); /* make sure we have an object file */ if (!bfd_check_format(exec_bfd, bfd_object)) error("\"%s\": not in executable format: %s.", scratch_pathname, - bfd_errmsg(bfd_error)); + bfd_errmsg(bfd_get_error ())); /* setup initial vmap */ map_vmap (exec_bfd, 0); if (!vmap) error("Can't find the file sections in `%s': %s", exec_bfd->filename, - bfd_errmsg(bfd_error)); + bfd_errmsg(bfd_get_error ())); if (build_section_table (exec_bfd, &exec_ops.to_sections, &exec_ops.to_sections_end)) error ("Can't find the file sections in `%s': %s", exec_bfd->filename, - bfd_errmsg (bfd_error)); + bfd_errmsg (bfd_get_error ())); /* make sure core, if present, matches */ validate_files(); -- cgit v1.1