1 1.1 christos @section Core files 2 1.1 christos 3 1.1 christos 4 1.1 christos @subsection Core file functions 5 1.1 christos 6 1.1 christos 7 1.1 christos These are functions pertaining to core files. 8 1.1 christos 9 1.1 christos @findex bfd_core_file_failing_command 10 1.1 christos @subsubsection @code{bfd_core_file_failing_command} 11 1.1.1.2 christos @deftypefn {Function} const char *bfd_core_file_failing_command (bfd *abfd); 12 1.1 christos Return a read-only string explaining which program was running 13 1.1 christos when it failed and produced the core file @var{abfd}. 14 1.1 christos 15 1.1.1.2 christos @end deftypefn 16 1.1 christos @findex bfd_core_file_failing_signal 17 1.1 christos @subsubsection @code{bfd_core_file_failing_signal} 18 1.1.1.2 christos @deftypefn {Function} int bfd_core_file_failing_signal (bfd *abfd); 19 1.1 christos Returns the signal number which caused the core dump which 20 1.1 christos generated the file the BFD @var{abfd} is attached to. 21 1.1 christos 22 1.1.1.2 christos @end deftypefn 23 1.1 christos @findex bfd_core_file_pid 24 1.1 christos @subsubsection @code{bfd_core_file_pid} 25 1.1.1.2 christos @deftypefn {Function} int bfd_core_file_pid (bfd *abfd); 26 1.1 christos Returns the PID of the process the core dump the BFD 27 1.1 christos @var{abfd} is attached to was generated from. 28 1.1 christos 29 1.1.1.2 christos @end deftypefn 30 1.1 christos @findex core_file_matches_executable_p 31 1.1 christos @subsubsection @code{core_file_matches_executable_p} 32 1.1.1.2 christos @deftypefn {Function} bool core_file_matches_executable_p (bfd *core_bfd, bfd *exec_bfd); 33 1.1 christos Return @code{TRUE} if the core file attached to @var{core_bfd} 34 1.1 christos was generated by a run of the executable file attached to 35 1.1 christos @var{exec_bfd}, @code{FALSE} otherwise. 36 1.1 christos 37 1.1.1.2 christos @end deftypefn 38 1.1 christos @findex generic_core_file_matches_executable_p 39 1.1 christos @subsubsection @code{generic_core_file_matches_executable_p} 40 1.1.1.2 christos @deftypefn {Function} bool generic_core_file_matches_executable_p (bfd *core_bfd, bfd *exec_bfd); 41 1.1 christos Return TRUE if the core file attached to @var{core_bfd} 42 1.1 christos was generated by a run of the executable file attached 43 1.1 christos to @var{exec_bfd}. The match is based on executable 44 1.1 christos basenames only. 45 1.1 christos 46 1.1 christos Note: When not able to determine the core file failing 47 1.1 christos command or the executable name, we still return TRUE even 48 1.1 christos though we're not sure that core file and executable match. 49 1.1 christos This is to avoid generating a false warning in situations 50 1.1 christos where we really don't know whether they match or not. 51 1.1 christos 52 1.1.1.2 christos @end deftypefn 53