blob: 08ba2a9bab660d6168003217622f40b9a0a356e1 [file] [log] [blame]
Fuad Tabbafed62072020-09-23 14:47:51 +01001<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<!-- Copyright (C) 1988-2015 Free Software Foundation, Inc.
4
5Permission is granted to copy, distribute and/or modify this document
6under the terms of the GNU Free Documentation License, Version 1.3 or
7any later version published by the Free Software Foundation; with the
8Invariant Sections being "Funding Free Software", the Front-Cover
9Texts being (a) (see below), and with the Back-Cover Texts being (b)
10(see below). A copy of the license is included in the section entitled
11"GNU Free Documentation License".
12
13(a) The FSF's Front-Cover Text is:
14
15A GNU Manual
16
17(b) The FSF's Back-Cover Text is:
18
19You have freedom to copy and modify this GNU Manual, like GNU
20 software. Copies published by the Free Software Foundation raise
21 funds for GNU development. -->
22<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
23<head>
24<title>GNU Compiler Collection (GCC) Internals: File Names and DBX</title>
25
26<meta name="description" content="GNU Compiler Collection (GCC) Internals: File Names and DBX">
27<meta name="keywords" content="GNU Compiler Collection (GCC) Internals: File Names and DBX">
28<meta name="resource-type" content="document">
29<meta name="distribution" content="global">
30<meta name="Generator" content="makeinfo">
31<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
32<link href="index.html#Top" rel="start" title="Top">
33<link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
34<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
35<link href="Debugging-Info.html#Debugging-Info" rel="up" title="Debugging Info">
36<link href="SDB-and-DWARF.html#SDB-and-DWARF" rel="next" title="SDB and DWARF">
37<link href="DBX-Hooks.html#DBX-Hooks" rel="prev" title="DBX Hooks">
38<style type="text/css">
39<!--
40a.summary-letter {text-decoration: none}
41blockquote.smallquotation {font-size: smaller}
42div.display {margin-left: 3.2em}
43div.example {margin-left: 3.2em}
44div.indentedblock {margin-left: 3.2em}
45div.lisp {margin-left: 3.2em}
46div.smalldisplay {margin-left: 3.2em}
47div.smallexample {margin-left: 3.2em}
48div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
49div.smalllisp {margin-left: 3.2em}
50kbd {font-style:oblique}
51pre.display {font-family: inherit}
52pre.format {font-family: inherit}
53pre.menu-comment {font-family: serif}
54pre.menu-preformatted {font-family: serif}
55pre.smalldisplay {font-family: inherit; font-size: smaller}
56pre.smallexample {font-size: smaller}
57pre.smallformat {font-family: inherit; font-size: smaller}
58pre.smalllisp {font-size: smaller}
59span.nocodebreak {white-space:nowrap}
60span.nolinebreak {white-space:nowrap}
61span.roman {font-family:serif; font-weight:normal}
62span.sansserif {font-family:sans-serif; font-weight:normal}
63ul.no-bullet {list-style: none}
64-->
65</style>
66
67
68</head>
69
70<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
71<a name="File-Names-and-DBX"></a>
72<div class="header">
73<p>
74Next: <a href="SDB-and-DWARF.html#SDB-and-DWARF" accesskey="n" rel="next">SDB and DWARF</a>, Previous: <a href="DBX-Hooks.html#DBX-Hooks" accesskey="p" rel="prev">DBX Hooks</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>
75</div>
76<hr>
77<a name="File-Names-in-DBX-Format"></a>
78<h4 class="subsection">17.22.4 File Names in DBX Format</h4>
79
80<p>This describes file names in DBX format.
81</p>
82<dl>
83<dt><a name="index-DBX_005fOUTPUT_005fMAIN_005fSOURCE_005fFILENAME"></a>Macro: <strong>DBX_OUTPUT_MAIN_SOURCE_FILENAME</strong> <em>(<var>stream</var>, <var>name</var>)</em></dt>
84<dd><p>A C statement to output DBX debugging information to the stdio stream
85<var>stream</var>, which indicates that file <var>name</var> is the main source
86file&mdash;the file specified as the input file for compilation.
87This macro is called only once, at the beginning of compilation.
88</p>
89<p>This macro need not be defined if the standard form of output
90for DBX debugging information is appropriate.
91</p>
92<p>It may be necessary to refer to a label equal to the beginning of the
93text section. You can use &lsquo;<samp>assemble_name (stream, ltext_label_name)</samp>&rsquo;
94to do so. If you do this, you must also set the variable
95<var>used_ltext_label_name</var> to <code>true</code>.
96</p></dd></dl>
97
98<dl>
99<dt><a name="index-NO_005fDBX_005fMAIN_005fSOURCE_005fDIRECTORY"></a>Macro: <strong>NO_DBX_MAIN_SOURCE_DIRECTORY</strong></dt>
100<dd><p>Define this macro, with value 1, if GCC should not emit an indication
101of the current directory for compilation and current source language at
102the beginning of the file.
103</p></dd></dl>
104
105<dl>
106<dt><a name="index-NO_005fDBX_005fGCC_005fMARKER"></a>Macro: <strong>NO_DBX_GCC_MARKER</strong></dt>
107<dd><p>Define this macro, with value 1, if GCC should not emit an indication
108that this object file was compiled by GCC. The default is to emit
109an <code>N_OPT</code> stab at the beginning of every source file, with
110&lsquo;<samp>gcc2_compiled.</samp>&rsquo; for the string and value 0.
111</p></dd></dl>
112
113<dl>
114<dt><a name="index-DBX_005fOUTPUT_005fMAIN_005fSOURCE_005fFILE_005fEND"></a>Macro: <strong>DBX_OUTPUT_MAIN_SOURCE_FILE_END</strong> <em>(<var>stream</var>, <var>name</var>)</em></dt>
115<dd><p>A C statement to output DBX debugging information at the end of
116compilation of the main source file <var>name</var>. Output should be
117written to the stdio stream <var>stream</var>.
118</p>
119<p>If you don&rsquo;t define this macro, nothing special is output at the end
120of compilation, which is correct for most machines.
121</p></dd></dl>
122
123<dl>
124<dt><a name="index-DBX_005fOUTPUT_005fNULL_005fN_005fSO_005fAT_005fMAIN_005fSOURCE_005fFILE_005fEND"></a>Macro: <strong>DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END</strong></dt>
125<dd><p>Define this macro <em>instead of</em> defining
126<code>DBX_OUTPUT_MAIN_SOURCE_FILE_END</code>, if what needs to be output at
127the end of compilation is an <code>N_SO</code> stab with an empty string,
128whose value is the highest absolute text address in the file.
129</p></dd></dl>
130
131<hr>
132<div class="header">
133<p>
134Next: <a href="SDB-and-DWARF.html#SDB-and-DWARF" accesskey="n" rel="next">SDB and DWARF</a>, Previous: <a href="DBX-Hooks.html#DBX-Hooks" accesskey="p" rel="prev">DBX Hooks</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>
135</div>
136
137
138
139</body>
140</html>