summaryrefslogtreecommitdiffstats
path: root/gdb/corelow.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/corelow.c
parentf61b81b7c1ca5c2de10a9dd6294ced660ef92cbc (diff)
downloadppe42-binutils-c4a081e17239660420dbfed33542e865ce932ea4.tar.gz
ppe42-binutils-c4a081e17239660420dbfed33542e865ce932ea4.zip
* 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/corelow.c')
-rw-r--r--gdb/corelow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 9d7c25269b..cc0d4f0dcb 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -155,7 +155,7 @@ core_open (filename, from_tty)
{
/* Do it after the err msg */
make_cleanup (bfd_close, temp_bfd);
- error ("\"%s\" is not a core dump: %s", filename, bfd_errmsg(bfd_error));
+ error ("\"%s\" is not a core dump: %s", filename, bfd_errmsg(bfd_get_error ()));
}
/* Looks semi-reasonable. Toss the old core file and work on the new. */
@@ -171,7 +171,7 @@ core_open (filename, from_tty)
if (build_section_table (core_bfd, &core_ops.to_sections,
&core_ops.to_sections_end))
error ("Can't find sections in `%s': %s", bfd_get_filename(core_bfd),
- bfd_errmsg (bfd_error));
+ bfd_errmsg (bfd_get_error ()));
ontop = !push_target (&core_ops);
discard_cleanups (old_chain);
@@ -265,7 +265,7 @@ get_core_registers (regno)
{
cant:
fprintf_filtered (gdb_stderr, "Couldn't fetch registers from core file: %s\n",
- bfd_errmsg (bfd_error));
+ bfd_errmsg (bfd_get_error ()));
}
/* Now do it again for the float registers, if they exist. */
@@ -282,7 +282,7 @@ cant:
else
{
fprintf_filtered (gdb_stderr, "Couldn't fetch register set 2 from core file: %s\n",
- bfd_errmsg (bfd_error));
+ bfd_errmsg (bfd_get_error ()));
}
}
registers_fetched();
OpenPOWER on IntegriCloud