diff options
author | John Gilmore <gnu@cygnus> | 1991-10-11 00:27:41 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-10-11 00:27:41 +0000 |
commit | 074274252f942a2660c310218943f2aa4ef2e237 (patch) | |
tree | db70482554ded6d61145d20625016c73c1fff3c3 /gdb/core.c | |
parent | 1a3157039006773431d59320d65fdff1fd18ae45 (diff) | |
download | binutils-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); } |