1 /* Debug hooks for GCC.
2 Copyright (C) 2001 Free Software Foundation, Inc.
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
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.
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. */
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
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));
30 /* Output debug symbols to FILE. */
31 void (* finish) PARAMS ((FILE * file, const char *main_filename));
34 extern struct gcc_debug_hooks *debug_hooks;
36 /* The do-nothing hooks. */
37 extern void debug_nothing_init_finish
38 PARAMS ((FILE *, const char *));
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;
46 #endif /* !GCC_DEBUG_H */