4 @subsection Core file functions
8 These are functions pertaining to core files.
10 @findex bfd_core_file_failing_command
11 @subsubsection @code{bfd_core_file_failing_command}
14 const char *bfd_core_file_failing_command (bfd *abfd);
16 @strong{Description}@*
17 Return a read-only string explaining which program was running
18 when it failed and produced the core file @var{abfd}.
20 @findex bfd_core_file_failing_signal
21 @subsubsection @code{bfd_core_file_failing_signal}
24 int bfd_core_file_failing_signal (bfd *abfd);
26 @strong{Description}@*
27 Returns the signal number which caused the core dump which
28 generated the file the BFD @var{abfd} is attached to.
30 @findex core_file_matches_executable_p
31 @subsubsection @code{core_file_matches_executable_p}
34 bfd_boolean core_file_matches_executable_p
35 (bfd *core_bfd, bfd *exec_bfd);
37 @strong{Description}@*
38 Return @code{TRUE} if the core file attached to @var{core_bfd}
39 was generated by a run of the executable file attached to
40 @var{exec_bfd}, @code{FALSE} otherwise.
42 @findex generic_core_file_matches_executable_p
43 @subsubsection @code{generic_core_file_matches_executable_p}
46 bfd_boolean generic_core_file_matches_executable_p
47 (bfd *core_bfd, bfd *exec_bfd);
49 @strong{Description}@*
50 Return TRUE if the core file attached to @var{core_bfd}
51 was generated by a run of the executable file attached
52 to @var{exec_bfd}. The match is based on executable
55 Note: When not able to determine the core file failing
56 command or the executable name, we still return TRUE even
57 though we're not sure that core file and executable match.
58 This is to avoid generating a false warning in situations
59 where we really don't know whether they match or not.