aboutsummaryrefslogtreecommitdiff
path: root/gdb/core.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-11 00:27:41 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-11 00:27:41 +0000
commit074274252f942a2660c310218943f2aa4ef2e237 (patch)
treedb70482554ded6d61145d20625016c73c1fff3c3 /gdb/core.c
parent1a3157039006773431d59320d65fdff1fd18ae45 (diff)
downloadbinutils-074274252f942a2660c310218943f2aa4ef2e237.zip
binutils-074274252f942a2660c310218943f2aa4ef2e237.tar.gz
binutils-074274252f942a2660c310218943f2aa4ef2e237.tar.bz2
Read cross-core files on Mach 386.
Diffstat (limited to 'gdb/core.c')
-rw-r--r--gdb/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/core.c b/gdb/core.c
index c56281b..ad2830c 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -396,6 +396,7 @@ get_core_registers (regno)
char *the_regs;
reg_sec = bfd_get_section_by_name (core_bfd, ".reg");
+ if (!reg_sec) goto cant;
size = bfd_section_size (core_bfd, reg_sec);
the_regs = alloca (size);
if (bfd_get_section_contents (core_bfd, reg_sec, the_regs,
@@ -405,6 +406,7 @@ get_core_registers (regno)
}
else
{
+cant:
fprintf (stderr, "Couldn't fetch registers from core file: %s\n",
bfd_errmsg (bfd_error));
}