]> gcc.gnu.org Git - gcc.git/blame - gcc/debug.h
c-typeck.c (build_binary_op): Do not shorten unsigned right shift after sign extension.
[gcc.git] / gcc / debug.h
CommitLineData
a51d908e
NB
1/* Debug hooks for GCC.
2 Copyright (C) 2001 Free Software Foundation, Inc.
3
4This program is free software; you can redistribute it and/or modify it
5under the terms of the GNU General Public License as published by the
6Free Software Foundation; either version 2, or (at your option) any
7later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17
18#ifndef GCC_DEBUG_H
19#define GCC_DEBUG_H
20
e2a12aca
NB
21struct rtx_def;
22
a51d908e
NB
23/* This structure contains hooks for the debug information output
24 functions, accessed through the global instance debug_hooks set in
25 toplev.c according to command line options. */
26struct gcc_debug_hooks
27{
e2a12aca
NB
28 /* Initialise debug output. MAIN_FILENAME is the name of the main
29 input file. */
30 void (* init) PARAMS ((const char *main_filename));
a51d908e 31
e2a12aca
NB
32 /* Output debug symbols. */
33 void (* finish) PARAMS ((const char *main_filename));
7f905405
NB
34
35 /* Macro defined on line LINE with name and expansion TEXT. */
36 void (* define) PARAMS ((unsigned int line, const char *text));
37
38 /* MACRO undefined on line LINE. */
39 void (* undef) PARAMS ((unsigned int line, const char *macro));
40
41 /* Record the beginning of a new source file FILE from LINE number
42 in the previous one. */
43 void (* start_source_file) PARAMS ((unsigned int line, const char *file));
44
45 /* Record the resumption of a source file. LINE is the line number
46 in the source file we are returning to. */
47 void (* end_source_file) PARAMS ((unsigned int line));
a5a42b92
NB
48
49 /* Record the beginning of block N, counting from 1 and not
e2a12aca
NB
50 including the function-scope block, at LINE. */
51 void (* begin_block) PARAMS ((unsigned int line, unsigned int n));
a5a42b92
NB
52
53 /* Record the end of a block. Arguments as for begin_block. */
e2a12aca
NB
54 void (* end_block) PARAMS ((unsigned int line, unsigned int n));
55
56 /* Record a line based on NOTE. Obtain the line number with
57 NOTE_LINE_NUMBER (note). */
58 void (* source_line) PARAMS ((const char *filename, struct rtx_def *note));
59
60 /* Record end of epilogue code. */
61 void (* end_epilogue) PARAMS ((void));
62
63 /* Record end of function. LINE is highest line number in function. */
64 void (* end_function) PARAMS ((unsigned int line));
a51d908e
NB
65};
66
67extern struct gcc_debug_hooks *debug_hooks;
68
69/* The do-nothing hooks. */
e2a12aca
NB
70extern void debug_nothing_void
71 PARAMS ((void));
72extern void debug_nothing_charstar
73 PARAMS ((const char *));
7f905405
NB
74extern void debug_nothing_int_charstar
75 PARAMS ((unsigned int, const char *));
76extern void debug_nothing_int
77 PARAMS ((unsigned int));
e2a12aca
NB
78extern void debug_nothing_int_int
79 PARAMS ((unsigned int, unsigned int));
80extern void debug_nothing_charstar_rtx
81 PARAMS ((const char *, struct rtx_def *));
a51d908e 82
7f905405 83/* Hooks for various debug formats. */
a51d908e
NB
84extern struct gcc_debug_hooks do_nothing_debug_hooks;
85extern struct gcc_debug_hooks dbx_debug_hooks;
86extern struct gcc_debug_hooks sdb_debug_hooks;
a5a42b92 87extern struct gcc_debug_hooks xcoff_debug_hooks;
a51d908e
NB
88extern struct gcc_debug_hooks dwarf_debug_hooks;
89extern struct gcc_debug_hooks dwarf2_debug_hooks;
90
e2a12aca
NB
91/* Dwarf2 frame information. */
92
93extern void dwarf2out_end_epilogue
94 PARAMS ((void));
95
a51d908e 96#endif /* !GCC_DEBUG_H */
This page took 0.048122 seconds and 5 git commands to generate.