1 /* dwarf2dbg.h - DWARF2 debug support
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 #ifndef AS_DWARF2DBG_H
22 #define AS_DWARF2DBG_H
26 #define DWARF2_FLAG_BEGIN_STMT (1 << 0) /* beginning of statement */
27 #define DWARF2_FLAG_BEGIN_BLOCK (1 << 1) /* beginning of basic block */
29 struct dwarf2_line_info
{
37 /* Implements the .file FILENO "FILENAME" directive. FILENO can be 0
38 to indicate that no file number has been assigned. All real file
40 extern void dwarf2_directive_file
PARAMS ((int dummy
));
42 /* Implements the .loc FILENO LINENO [COLUMN] directive. FILENO is
43 the file number, LINENO the line number and the (optional) COLUMN
44 the column of the source code that the following instruction
45 corresponds to. FILENO can be 0 to indicate that the filename
46 specified by the textually most recent .file directive should be
48 extern void dwarf2_directive_loc
PARAMS ((int dummy
));
50 /* Returns the current source information. If .file directives have
51 been encountered, the info for the corresponding source file is
52 returned. Otherwise, the info for the assembly source file is
54 extern void dwarf2_where
PARAMS ((struct dwarf2_line_info
*l
));
56 /* This function generates .debug_line info based on the address and
57 source information passed in the arguments. ADDR should be the
58 frag-relative offset of the instruction the information is for and
59 L is the source information that should be associated with that
61 extern void dwarf2_gen_line_info
PARAMS ((addressT addr
,
62 struct dwarf2_line_info
*l
));
64 /* Must be called after all other input is processed to finish up the
65 .debug_line section. */
66 extern void dwarf2_finish
PARAMS ((void));
68 extern void dwarf2_generate_asm_lineno
PARAMS ((int));
70 #endif /* AS_DWARF2DBG_H */