X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=bfd%2Fptrace-core.c;h=7cf47af10be1accc1c266617237c1ca6097f7a2b;hb=250d07de5cf6efc81ed934c25292beb63c7e3129;hp=ae8d747c2be80634e0499c57988d9c9d82876895;hpb=b3adc24a0713411ab38a21dc894dd40dbc5c8f4f;p=binutils-gdb.git diff --git a/bfd/ptrace-core.c b/bfd/ptrace-core.c index ae8d747c2be..7cf47af10be 100644 --- a/bfd/ptrace-core.c +++ b/bfd/ptrace-core.c @@ -1,5 +1,5 @@ /* BFD backend for core files which use the ptrace_user structure - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. The structure of this file is based on trad-core.c written by John Gilmore of Cygnus Support. Modified to work with the ptrace_user structure by Kevin A. Buettner. @@ -55,13 +55,13 @@ int ptrace_unix_core_file_failing_signal (bfd *abfd); #define ptrace_unix_core_file_pid _bfd_nocore_core_file_pid static void swap_abort (void); -const bfd_target * +bfd_cleanup ptrace_unix_core_file_p (bfd *abfd) { int val; struct ptrace_user u; struct trad_core_struct *rawptr; - bfd_size_type amt; + size_t amt; flagword flags; val = bfd_bread ((void *)&u, (bfd_size_type) sizeof u, abfd); @@ -124,7 +124,7 @@ ptrace_unix_core_file_p (bfd *abfd) core_datasec (abfd)->alignment_power = 2; core_regsec (abfd)->alignment_power = 2; - return abfd->xvec; + return _bfd_no_cleanup; fail: bfd_release (abfd, abfd->tdata.any);