Re: bfd_cleanup for object_p
authorAlan Modra <amodra@gmail.com>
Fri, 23 Sep 2022 12:50:17 +0000 (22:20 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 24 Sep 2022 00:36:37 +0000 (10:06 +0930)
Bits still missing from commit cb001c0d283d.

* aoutx.h (aout_@var{size}_some_aout_object_p): Correct synopsis.
* i386lynx.c (lynx_core_file_p): Correct return type.
* ptrace-core.c (ptrace_unix_core_file_p): Likewise.

bfd/aoutx.h
bfd/i386lynx.c
bfd/ptrace-core.c

index e9b5188e8e79c31f9221ac3083ed0e20e4c06b28..4aed23426ca9a4959301cd88ffaf080665f22c5f 100644 (file)
@@ -451,10 +451,10 @@ FUNCTION
        aout_@var{size}_some_aout_object_p
 
 SYNOPSIS
-       const bfd_target *aout_@var{size}_some_aout_object_p
+       bfd_cleanup aout_@var{size}_some_aout_object_p
         (bfd *abfd,
          struct internal_exec *execp,
-         const bfd_target *(*callback_to_real_object_p) (bfd *));
+         bfd_cleanup (*callback_to_real_object_p) (bfd *));
 
 DESCRIPTION
        Some a.out variant thinks that the file open in @var{abfd}
index 840be8fd36d145a7f317c3bc9d2d434178a8f025..5df3d19ffe0c2804ee382f85d5df63cb46c08e96 100644 (file)
@@ -87,7 +87,7 @@
 char *lynx_core_file_failing_command ();
 int lynx_core_file_failing_signal ();
 bool lynx_core_file_matches_executable_p ();
-const bfd_target *lynx_core_file_p ();
+bfd_cleanup lynx_core_file_p ();
 
 #define        MY_core_file_failing_command lynx_core_file_failing_command
 #define        MY_core_file_failing_signal lynx_core_file_failing_signal
index c4afffbfb9538220920d4d654dd7c1b0242abe83..cf39ff42a6e797f5690aaf3270232acebcab8b2d 100644 (file)
@@ -48,7 +48,7 @@ struct trad_core_struct
 
 /* forward declarations */
 
-const bfd_target *ptrace_unix_core_file_p (bfd *abfd);
+bfd_cleanup ptrace_unix_core_file_p (bfd *abfd);
 char * ptrace_unix_core_file_failing_command (bfd *abfd);
 int ptrace_unix_core_file_failing_signal (bfd *abfd);
 #define ptrace_unix_core_file_matches_executable_p generic_core_file_matches_executable_p