You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
6.9KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the BFD library.
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3 or
  7. any later version published by the Free Software Foundation; with the
  8. Invariant Sections being "GNU General Public License" and "Funding
  9. Free Software", the Front-Cover texts being (a) (see below), and with
  10. the Back-Cover Texts being (b) (see below). A copy of the license is
  11. included in the section entitled "GNU Free Documentation License".
  12. (a) The FSF's Front-Cover Text is:
  13. A GNU Manual
  14. (b) The FSF's Back-Cover Text is:
  15. You have freedom to copy and modify this GNU Manual, like GNU
  16. software. Copies published by the Free Software Foundation raise
  17. funds for GNU development. -->
  18. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  21. <title>Core Files (Untitled Document)</title>
  22. <meta name="description" content="Core Files (Untitled Document)">
  23. <meta name="keywords" content="Core Files (Untitled Document)">
  24. <meta name="resource-type" content="document">
  25. <meta name="distribution" content="global">
  26. <meta name="Generator" content="makeinfo">
  27. <link href="index.html#Top" rel="start" title="Top">
  28. <link href="BFD-Index.html#BFD-Index" rel="index" title="BFD Index">
  29. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  30. <link href="BFD-front-end.html#BFD-front-end" rel="up" title="BFD front end">
  31. <link href="Targets.html#Targets" rel="next" title="Targets">
  32. <link href="howto-manager.html#howto-manager" rel="prev" title="howto manager">
  33. <style type="text/css">
  34. <!--
  35. a.summary-letter {text-decoration: none}
  36. blockquote.indentedblock {margin-right: 0em}
  37. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  38. blockquote.smallquotation {font-size: smaller}
  39. div.display {margin-left: 3.2em}
  40. div.example {margin-left: 3.2em}
  41. div.lisp {margin-left: 3.2em}
  42. div.smalldisplay {margin-left: 3.2em}
  43. div.smallexample {margin-left: 3.2em}
  44. div.smalllisp {margin-left: 3.2em}
  45. kbd {font-style: oblique}
  46. pre.display {font-family: inherit}
  47. pre.format {font-family: inherit}
  48. pre.menu-comment {font-family: serif}
  49. pre.menu-preformatted {font-family: serif}
  50. pre.smalldisplay {font-family: inherit; font-size: smaller}
  51. pre.smallexample {font-size: smaller}
  52. pre.smallformat {font-family: inherit; font-size: smaller}
  53. pre.smalllisp {font-size: smaller}
  54. span.nolinebreak {white-space: nowrap}
  55. span.roman {font-family: initial; font-weight: normal}
  56. span.sansserif {font-family: sans-serif; font-weight: normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en">
  62. <a name="Core-Files"></a>
  63. <div class="header">
  64. <p>
  65. Next: <a href="Targets.html#Targets" accesskey="n" rel="next">Targets</a>, Previous: <a href="Relocations.html#Relocations" accesskey="p" rel="prev">Relocations</a>, Up: <a href="BFD-front-end.html#BFD-front-end" accesskey="u" rel="up">BFD front end</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="BFD-Index.html#BFD-Index" title="Index" rel="index">Index</a>]</p>
  66. </div>
  67. <hr>
  68. <a name="Core-files"></a>
  69. <h3 class="section">2.11 Core files</h3>
  70. <a name="Core-file-functions"></a>
  71. <h4 class="subsection">2.11.1 Core file functions</h4>
  72. <p><strong>Description</strong><br>
  73. These are functions pertaining to core files.
  74. </p>
  75. <a name="index-bfd_005fcore_005ffile_005ffailing_005fcommand"></a>
  76. <a name="bfd_005fcore_005ffile_005ffailing_005fcommand"></a>
  77. <h4 class="subsubsection">2.11.1.1 <code>bfd_core_file_failing_command</code></h4>
  78. <p><strong>Synopsis</strong>
  79. </p><div class="example">
  80. <pre class="example">const char *bfd_core_file_failing_command (bfd *abfd);
  81. </pre></div>
  82. <p><strong>Description</strong><br>
  83. Return a read-only string explaining which program was running
  84. when it failed and produced the core file <var>abfd</var>.
  85. </p>
  86. <a name="index-bfd_005fcore_005ffile_005ffailing_005fsignal"></a>
  87. <a name="bfd_005fcore_005ffile_005ffailing_005fsignal"></a>
  88. <h4 class="subsubsection">2.11.1.2 <code>bfd_core_file_failing_signal</code></h4>
  89. <p><strong>Synopsis</strong>
  90. </p><div class="example">
  91. <pre class="example">int bfd_core_file_failing_signal (bfd *abfd);
  92. </pre></div>
  93. <p><strong>Description</strong><br>
  94. Returns the signal number which caused the core dump which
  95. generated the file the BFD <var>abfd</var> is attached to.
  96. </p>
  97. <a name="index-bfd_005fcore_005ffile_005fpid"></a>
  98. <a name="bfd_005fcore_005ffile_005fpid"></a>
  99. <h4 class="subsubsection">2.11.1.3 <code>bfd_core_file_pid</code></h4>
  100. <p><strong>Synopsis</strong>
  101. </p><div class="example">
  102. <pre class="example">int bfd_core_file_pid (bfd *abfd);
  103. </pre></div>
  104. <p><strong>Description</strong><br>
  105. Returns the PID of the process the core dump the BFD
  106. <var>abfd</var> is attached to was generated from.
  107. </p>
  108. <a name="index-core_005ffile_005fmatches_005fexecutable_005fp"></a>
  109. <a name="core_005ffile_005fmatches_005fexecutable_005fp"></a>
  110. <h4 class="subsubsection">2.11.1.4 <code>core_file_matches_executable_p</code></h4>
  111. <p><strong>Synopsis</strong>
  112. </p><div class="example">
  113. <pre class="example">bfd_boolean core_file_matches_executable_p
  114. (bfd *core_bfd, bfd *exec_bfd);
  115. </pre></div>
  116. <p><strong>Description</strong><br>
  117. Return <code>TRUE</code> if the core file attached to <var>core_bfd</var>
  118. was generated by a run of the executable file attached to
  119. <var>exec_bfd</var>, <code>FALSE</code> otherwise.
  120. </p>
  121. <a name="index-generic_005fcore_005ffile_005fmatches_005fexecutable_005fp"></a>
  122. <a name="generic_005fcore_005ffile_005fmatches_005fexecutable_005fp"></a>
  123. <h4 class="subsubsection">2.11.1.5 <code>generic_core_file_matches_executable_p</code></h4>
  124. <p><strong>Synopsis</strong>
  125. </p><div class="example">
  126. <pre class="example">bfd_boolean generic_core_file_matches_executable_p
  127. (bfd *core_bfd, bfd *exec_bfd);
  128. </pre></div>
  129. <p><strong>Description</strong><br>
  130. Return TRUE if the core file attached to <var>core_bfd</var>
  131. was generated by a run of the executable file attached
  132. to <var>exec_bfd</var>. The match is based on executable
  133. basenames only.
  134. </p>
  135. <p>Note: When not able to determine the core file failing
  136. command or the executable name, we still return TRUE even
  137. though we&rsquo;re not sure that core file and executable match.
  138. This is to avoid generating a false warning in situations
  139. where we really don&rsquo;t know whether they match or not.
  140. </p>
  141. <hr>
  142. <div class="header">
  143. <p>
  144. Next: <a href="Targets.html#Targets" accesskey="n" rel="next">Targets</a>, Previous: <a href="Relocations.html#Relocations" accesskey="p" rel="prev">Relocations</a>, Up: <a href="BFD-front-end.html#BFD-front-end" accesskey="u" rel="up">BFD front end</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="BFD-Index.html#BFD-Index" title="Index" rel="index">Index</a>]</p>
  145. </div>
  146. </body>
  147. </html>