OSDN Git Service

86dc5d597c1f0cdf9a739e141898348478b68eb0
[pf3gnuchains/gcc-fork.git] / gcc / debug.h
1 /* Debug hooks for GCC.
2    Copyright (C) 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 2, or (at your option) any
7 later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
17
18 #ifndef GCC_DEBUG_H
19 #define GCC_DEBUG_H
20
21 /* This structure contains hooks for the debug information output
22    functions, accessed through the global instance debug_hooks set in
23    toplev.c according to command line options.  */
24 struct gcc_debug_hooks
25 {
26   /* Initialise debug output to FILE.  MAIN_FILENAME is the name of
27      the main input file.  */
28   void (* init) PARAMS ((FILE * file, const char *main_filename));
29
30   /* Output debug symbols to FILE.  */
31   void (* finish) PARAMS ((FILE * file, const char *main_filename));
32 };
33
34 extern struct gcc_debug_hooks *debug_hooks;
35
36 /* The do-nothing hooks.  */
37 extern void debug_nothing_init_finish
38   PARAMS ((FILE *, const char *));
39
40 extern struct gcc_debug_hooks do_nothing_debug_hooks;
41 extern struct gcc_debug_hooks dbx_debug_hooks;
42 extern struct gcc_debug_hooks sdb_debug_hooks;
43 extern struct gcc_debug_hooks dwarf_debug_hooks;
44 extern struct gcc_debug_hooks dwarf2_debug_hooks;
45
46 #endif /* !GCC_DEBUG_H  */