mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-17 18:43:25 +08:00
* doc/as.texinfo (Pseudo Ops): Remove no-file-dir conditional around
menu entry for File; remove version-specific .file operands from menu description. Replace "LNS directives" menu entry with new entries for "Loc" and "Loc_mark_labels". (LNS directives): Split into separate nodes for each directive. (Loc): New node for .loc directive. Mention that this directive is for DWARF2 and add a missing article. (Loc_mark_labels): Likewise for .loc_mark_labels. (File): Change this node to describe both the default version and the DWARF2 version of .file. Move the no-file-dir conditional to include only the default version.
This commit is contained in:
@ -1,3 +1,17 @@
|
|||||||
|
2008-10-09 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
|
* doc/as.texinfo (Pseudo Ops): Remove no-file-dir conditional around
|
||||||
|
menu entry for File; remove version-specific .file operands from menu
|
||||||
|
description. Replace "LNS directives" menu entry with new entries
|
||||||
|
for "Loc" and "Loc_mark_labels".
|
||||||
|
(LNS directives): Split into separate nodes for each directive.
|
||||||
|
(Loc): New node for .loc directive. Mention that this directive
|
||||||
|
is for DWARF2 and add a missing article.
|
||||||
|
(Loc_mark_labels): Likewise for .loc_mark_labels.
|
||||||
|
(File): Change this node to describe both the default version and
|
||||||
|
the DWARF2 version of .file. Move the no-file-dir conditional to
|
||||||
|
include only the default version.
|
||||||
|
|
||||||
2008-10-09 Eric Botcazou <ebotcazou@adacore.com>
|
2008-10-09 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
* dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame.
|
* dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame.
|
||||||
|
@ -3841,10 +3841,7 @@ Some machine configurations provide additional directives.
|
|||||||
* Exitm:: @code{.exitm}
|
* Exitm:: @code{.exitm}
|
||||||
* Extern:: @code{.extern}
|
* Extern:: @code{.extern}
|
||||||
* Fail:: @code{.fail}
|
* Fail:: @code{.fail}
|
||||||
@ifclear no-file-dir
|
* File:: @code{.file}
|
||||||
* File:: @code{.file @var{string}}
|
|
||||||
@end ifclear
|
|
||||||
|
|
||||||
* Fill:: @code{.fill @var{repeat} , @var{size} , @var{value}}
|
* Fill:: @code{.fill @var{repeat} , @var{size} , @var{value}}
|
||||||
* Float:: @code{.float @var{flonums}}
|
* Float:: @code{.float @var{flonums}}
|
||||||
* Func:: @code{.func}
|
* Func:: @code{.func}
|
||||||
@ -3875,8 +3872,8 @@ Some machine configurations provide additional directives.
|
|||||||
* Linkonce:: @code{.linkonce [@var{type}]}
|
* Linkonce:: @code{.linkonce [@var{type}]}
|
||||||
* List:: @code{.list}
|
* List:: @code{.list}
|
||||||
* Ln:: @code{.ln @var{line-number}}
|
* Ln:: @code{.ln @var{line-number}}
|
||||||
|
* Loc:: @code{.loc @var{fileno} @var{lineno}}
|
||||||
* LNS directives:: @code{.file}, @code{.loc}, etc.
|
* Loc_mark_labels:: @code{.loc_mark_labels @var{enable}}
|
||||||
@ifset ELF
|
@ifset ELF
|
||||||
* Local:: @code{.local @var{names}}
|
* Local:: @code{.local @var{names}}
|
||||||
@end ifset
|
@end ifset
|
||||||
@ -4244,22 +4241,11 @@ mark a code segment that has only one return address which is reached
|
|||||||
by a direct branch and no copy of the return address exists in memory
|
by a direct branch and no copy of the return address exists in memory
|
||||||
or another register.
|
or another register.
|
||||||
|
|
||||||
@node LNS directives
|
@node Loc
|
||||||
@section @code{.file @var{fileno} @var{filename}}
|
|
||||||
@cindex @code{file} directive
|
|
||||||
When emitting dwarf2 line number information @code{.file} assigns filenames
|
|
||||||
to the @code{.debug_line} file name table. The @var{fileno} operand should
|
|
||||||
be a unique positive integer to use as the index of the entry in the table.
|
|
||||||
The @var{filename} operand is a C string literal.
|
|
||||||
|
|
||||||
The detail of filename indices is exposed to the user because the filename
|
|
||||||
table is shared with the @code{.debug_info} section of the dwarf2 debugging
|
|
||||||
information, and thus the user must know the exact indices that table
|
|
||||||
entries will have.
|
|
||||||
|
|
||||||
@section @code{.loc @var{fileno} @var{lineno} [@var{column}] [@var{options}]}
|
@section @code{.loc @var{fileno} @var{lineno} [@var{column}] [@var{options}]}
|
||||||
@cindex @code{loc} directive
|
@cindex @code{loc} directive
|
||||||
The @code{.loc} directive will add row to the @code{.debug_line} line
|
When emitting DWARF2 line number information,
|
||||||
|
the @code{.loc} directive will add a row to the @code{.debug_line} line
|
||||||
number matrix corresponding to the immediately following assembly
|
number matrix corresponding to the immediately following assembly
|
||||||
instruction. The @var{fileno}, @var{lineno}, and optional @var{column}
|
instruction. The @var{fileno}, @var{lineno}, and optional @var{column}
|
||||||
arguments will be applied to the @code{.debug_line} state machine before
|
arguments will be applied to the @code{.debug_line} state machine before
|
||||||
@ -4291,9 +4277,11 @@ state machine to @var{value}, which must be an unsigned integer.
|
|||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@node Loc_mark_labels
|
||||||
@section @code{.loc_mark_labels @var{enable}}
|
@section @code{.loc_mark_labels @var{enable}}
|
||||||
@cindex @code{loc_mark_labels} directive
|
@cindex @code{loc_mark_labels} directive
|
||||||
The @code{.loc_mark_labels} directive makes the assembler emit an entry
|
When emitting DWARF2 line number information,
|
||||||
|
the @code{.loc_mark_labels} directive makes the assembler emit an entry
|
||||||
to the @code{.debug_line} line number matrix with the @code{basic_block}
|
to the @code{.debug_line} line number matrix with the @code{basic_block}
|
||||||
register in the state machine set whenever a code label is seen.
|
register in the state machine set whenever a code label is seen.
|
||||||
The @var{enable} argument should be either 1 or 0, to enable or disable
|
The @var{enable} argument should be either 1 or 0, to enable or disable
|
||||||
@ -4529,21 +4517,51 @@ than 500, @command{@value{AS}} will print an error message. The message will
|
|||||||
include the value of @var{expression}. This can occasionally be useful inside
|
include the value of @var{expression}. This can occasionally be useful inside
|
||||||
complex nested macros or conditional assembly.
|
complex nested macros or conditional assembly.
|
||||||
|
|
||||||
@ifclear no-file-dir
|
|
||||||
@node File
|
@node File
|
||||||
@section @code{.file @var{string}}
|
@section @code{.file}
|
||||||
|
|
||||||
@cindex @code{file} directive
|
@cindex @code{file} directive
|
||||||
|
|
||||||
|
@ifclear no-file-dir
|
||||||
|
There are two different versions of the @code{.file} directive. Targets
|
||||||
|
that support DWARF2 line number information use the DWARF2 version of
|
||||||
|
@code{.file}. Other targets use the default version.
|
||||||
|
|
||||||
|
@subheading Default Version
|
||||||
|
|
||||||
@cindex logical file name
|
@cindex logical file name
|
||||||
@cindex file name, logical
|
@cindex file name, logical
|
||||||
@code{.file} tells @command{@value{AS}} that we are about to start a new logical
|
This version of the @code{.file} directive tells @command{@value{AS}} that we
|
||||||
file. @var{string} is the new file name. In general, the filename is
|
are about to start a new logical file. The syntax is:
|
||||||
|
|
||||||
|
@smallexample
|
||||||
|
.file @var{string}
|
||||||
|
@end smallexample
|
||||||
|
|
||||||
|
@var{string} is the new file name. In general, the filename is
|
||||||
recognized whether or not it is surrounded by quotes @samp{"}; but if you wish
|
recognized whether or not it is surrounded by quotes @samp{"}; but if you wish
|
||||||
to specify an empty file name, you must give the quotes--@code{""}. This
|
to specify an empty file name, you must give the quotes--@code{""}. This
|
||||||
statement may go away in future: it is only recognized to be compatible with
|
statement may go away in future: it is only recognized to be compatible with
|
||||||
old @command{@value{AS}} programs.
|
old @command{@value{AS}} programs.
|
||||||
|
|
||||||
|
@subheading DWARF2 Version
|
||||||
@end ifclear
|
@end ifclear
|
||||||
|
|
||||||
|
When emitting DWARF2 line number information, @code{.file} assigns filenames
|
||||||
|
to the @code{.debug_line} file name table. The syntax is:
|
||||||
|
|
||||||
|
@smallexample
|
||||||
|
.file @var{fileno} @var{filename}
|
||||||
|
@end smallexample
|
||||||
|
|
||||||
|
The @var{fileno} operand should be a unique positive integer to use as the
|
||||||
|
index of the entry in the table. The @var{filename} operand is a C string
|
||||||
|
literal.
|
||||||
|
|
||||||
|
The detail of filename indices is exposed to the user because the filename
|
||||||
|
table is shared with the @code{.debug_info} section of the DWARF2 debugging
|
||||||
|
information, and thus the user must know the exact indices that table
|
||||||
|
entries will have.
|
||||||
|
|
||||||
@node Fill
|
@node Fill
|
||||||
@section @code{.fill @var{repeat} , @var{size} , @var{value}}
|
@section @code{.fill @var{repeat} , @var{size} , @var{value}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user