diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-02 23:42:08 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-02 23:49:03 +1030 |
commit | 601b73d5003ef804b49dfe42afd0fba0952218de (patch) | |
tree | 0e86d88ae0f189095c17cf6b3c06e6a746dba758 /bfd/cisco-core.c | |
parent | a84bb2a0790125f5fb5df65b7873fb6076164527 (diff) | |
download | gdb-601b73d5003ef804b49dfe42afd0fba0952218de.zip gdb-601b73d5003ef804b49dfe42afd0fba0952218de.tar.gz gdb-601b73d5003ef804b49dfe42afd0fba0952218de.tar.bz2 |
Re: bfd_cleanup for object_p
More missing core file support changes.
* aix386-core.c (aix386_core_file_p): Return bfd_cleanup.
* aix5ppc-core.c (xcoff64_core_p): Likewise.
* cisco-core.c (cisco_core_file_validate): Likewise.
* hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
* hpux-core.c (hpux_core_core_file_p): Likewise.
* irix-core.c (irix_core_core_file_p): Likewise.
* lynx-core.c (lynx_core_file_p): Likewise.
* netbsd-core.c (netbsd_core_file_p): Likewise.
* osf-core.c (osf_core_core_file_p): Likewise.
* ptrace-core.c (ptrace_unix_core_file_p): Likewise.
* sco5-core.c (sco5_core_file_p): Likewise.
Diffstat (limited to 'bfd/cisco-core.c')
-rw-r--r-- | bfd/cisco-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c index da18d2e..e43982b 100644 --- a/bfd/cisco-core.c +++ b/bfd/cisco-core.c @@ -80,7 +80,7 @@ struct cisco_core_struct /* Examine the file for a crash info struct at the offset given by CRASH_INFO_LOC. */ -static const bfd_target * +static bfd_cleanup cisco_core_file_validate (bfd *abfd, int crash_info_loc) { char buf[4]; @@ -274,7 +274,7 @@ cisco_core_file_validate (bfd *abfd, int crash_info_loc) nread = statbuf.st_size - asect->filepos; asect->size = (nread < 1024) ? nread : 1024; - return abfd->xvec; + return _bfd_no_cleanup; /* Get here if we have already started filling out the BFD and there is an error of some kind. */ |