Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

148 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. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>All Debuggers (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="All Debuggers (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="All Debuggers (GNU Compiler Collection (GCC) Internals)">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Debugging-Info.html#Debugging-Info" rel="up" title="Debugging Info">
  30. <link href="DBX-Options.html#DBX-Options" rel="next" title="DBX Options">
  31. <link href="Debugging-Info.html#Debugging-Info" rel="prev" title="Debugging Info">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="All-Debuggers"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="DBX-Options.html#DBX-Options" accesskey="n" rel="next">DBX Options</a>, Up: <a href="Debugging-Info.html#Debugging-Info" accesskey="u" rel="up">Debugging Info</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="Macros-Affecting-All-Debugging-Formats"></a>
  68. <h4 class="subsection">18.21.1 Macros Affecting All Debugging Formats</h4>
  69. <p>These macros affect all debugging formats.
  70. </p>
  71. <dl>
  72. <dt><a name="index-DBX_005fREGISTER_005fNUMBER"></a>Macro: <strong>DBX_REGISTER_NUMBER</strong> <em>(<var>regno</var>)</em></dt>
  73. <dd><p>A C expression that returns the DBX register number for the compiler
  74. register number <var>regno</var>. In the default macro provided, the value
  75. of this expression will be <var>regno</var> itself. But sometimes there are
  76. some registers that the compiler knows about and DBX does not, or vice
  77. versa. In such cases, some register may need to have one number in the
  78. compiler and another for DBX.
  79. </p>
  80. <p>If two registers have consecutive numbers inside GCC, and they can be
  81. used as a pair to hold a multiword value, then they <em>must</em> have
  82. consecutive numbers after renumbering with <code>DBX_REGISTER_NUMBER</code>.
  83. Otherwise, debuggers will be unable to access such a pair, because they
  84. expect register pairs to be consecutive in their own numbering scheme.
  85. </p>
  86. <p>If you find yourself defining <code>DBX_REGISTER_NUMBER</code> in way that
  87. does not preserve register pairs, then what you must do instead is
  88. redefine the actual register numbering scheme.
  89. </p></dd></dl>
  90. <dl>
  91. <dt><a name="index-DEBUGGER_005fAUTO_005fOFFSET"></a>Macro: <strong>DEBUGGER_AUTO_OFFSET</strong> <em>(<var>x</var>)</em></dt>
  92. <dd><p>A C expression that returns the integer offset value for an automatic
  93. variable having address <var>x</var> (an RTL expression). The default
  94. computation assumes that <var>x</var> is based on the frame-pointer and
  95. gives the offset from the frame-pointer. This is required for targets
  96. that produce debugging output for DBX and allow the frame-pointer to be
  97. eliminated when the <samp>-g</samp> option is used.
  98. </p></dd></dl>
  99. <dl>
  100. <dt><a name="index-DEBUGGER_005fARG_005fOFFSET"></a>Macro: <strong>DEBUGGER_ARG_OFFSET</strong> <em>(<var>offset</var>, <var>x</var>)</em></dt>
  101. <dd><p>A C expression that returns the integer offset value for an argument
  102. having address <var>x</var> (an RTL expression). The nominal offset is
  103. <var>offset</var>.
  104. </p></dd></dl>
  105. <dl>
  106. <dt><a name="index-PREFERRED_005fDEBUGGING_005fTYPE"></a>Macro: <strong>PREFERRED_DEBUGGING_TYPE</strong></dt>
  107. <dd><p>A C expression that returns the type of debugging output GCC should
  108. produce when the user specifies just <samp>-g</samp>. Define
  109. this if you have arranged for GCC to support more than one format of
  110. debugging output. Currently, the allowable values are <code>DBX_DEBUG</code>,
  111. <code>DWARF2_DEBUG</code>, <code>XCOFF_DEBUG</code>, <code>VMS_DEBUG</code>,
  112. and <code>VMS_AND_DWARF2_DEBUG</code>.
  113. </p>
  114. <p>When the user specifies <samp>-ggdb</samp>, GCC normally also uses the
  115. value of this macro to select the debugging output format, but with two
  116. exceptions. If <code>DWARF2_DEBUGGING_INFO</code> is defined, GCC uses the
  117. value <code>DWARF2_DEBUG</code>. Otherwise, if <code>DBX_DEBUGGING_INFO</code> is
  118. defined, GCC uses <code>DBX_DEBUG</code>.
  119. </p>
  120. <p>The value of this macro only affects the default debugging output; the
  121. user can always get a specific type of output by using <samp>-gstabs</samp>,
  122. <samp>-gdwarf-2</samp>, <samp>-gxcoff</samp>, or <samp>-gvms</samp>.
  123. </p></dd></dl>
  124. <hr>
  125. <div class="header">
  126. <p>
  127. Next: <a href="DBX-Options.html#DBX-Options" accesskey="n" rel="next">DBX Options</a>, Up: <a href="Debugging-Info.html#Debugging-Info" accesskey="u" rel="up">Debugging Info</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  128. </div>
  129. </body>
  130. </html>