| 1 |
@section Core files |
| 2 |
|
| 3 |
|
| 4 |
@subsection Core file functions |
| 5 |
|
| 6 |
|
| 7 |
@strong{Description}@* |
| 8 |
These are functions pertaining to core files. |
| 9 |
|
| 10 |
@findex bfd_core_file_failing_command |
| 11 |
@subsubsection @code{bfd_core_file_failing_command} |
| 12 |
@strong{Synopsis} |
| 13 |
@example |
| 14 |
const char *bfd_core_file_failing_command (bfd *abfd); |
| 15 |
@end example |
| 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}. |
| 19 |
|
| 20 |
@findex bfd_core_file_failing_signal |
| 21 |
@subsubsection @code{bfd_core_file_failing_signal} |
| 22 |
@strong{Synopsis} |
| 23 |
@example |
| 24 |
int bfd_core_file_failing_signal (bfd *abfd); |
| 25 |
@end example |
| 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. |
| 29 |
|
| 30 |
@findex bfd_core_file_pid |
| 31 |
@subsubsection @code{bfd_core_file_pid} |
| 32 |
@strong{Synopsis} |
| 33 |
@example |
| 34 |
int bfd_core_file_pid (bfd *abfd); |
| 35 |
@end example |
| 36 |
@strong{Description}@* |
| 37 |
Returns the PID of the process the core dump the BFD |
| 38 |
@var{abfd} is attached to was generated from. |
| 39 |
|
| 40 |
@findex core_file_matches_executable_p |
| 41 |
@subsubsection @code{core_file_matches_executable_p} |
| 42 |
@strong{Synopsis} |
| 43 |
@example |
| 44 |
bfd_boolean core_file_matches_executable_p |
| 45 |
(bfd *core_bfd, bfd *exec_bfd); |
| 46 |
@end example |
| 47 |
@strong{Description}@* |
| 48 |
Return @code{TRUE} if the core file attached to @var{core_bfd} |
| 49 |
was generated by a run of the executable file attached to |
| 50 |
@var{exec_bfd}, @code{FALSE} otherwise. |
| 51 |
|
| 52 |
@findex generic_core_file_matches_executable_p |
| 53 |
@subsubsection @code{generic_core_file_matches_executable_p} |
| 54 |
@strong{Synopsis} |
| 55 |
@example |
| 56 |
bfd_boolean generic_core_file_matches_executable_p |
| 57 |
(bfd *core_bfd, bfd *exec_bfd); |
| 58 |
@end example |
| 59 |
@strong{Description}@* |
| 60 |
Return TRUE if the core file attached to @var{core_bfd} |
| 61 |
was generated by a run of the executable file attached |
| 62 |
to @var{exec_bfd}. The match is based on executable |
| 63 |
basenames only. |
| 64 |
|
| 65 |
Note: When not able to determine the core file failing |
| 66 |
command or the executable name, we still return TRUE even |
| 67 |
though we're not sure that core file and executable match. |
| 68 |
This is to avoid generating a false warning in situations |
| 69 |
where we really don't know whether they match or not. |
| 70 |
|