123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- #ifndef GCC_DEBUG_H
- #define GCC_DEBUG_H
- struct gcc_debug_hooks
- {
-
- void (* init) (const char *main_filename);
-
- void (* finish) (const char *main_filename);
-
- void (* assembly_start) (void);
-
- void (* define) (unsigned int line, const char *text);
-
- void (* undef) (unsigned int line, const char *macro);
-
- void (* start_source_file) (unsigned int line, const char *file);
-
- void (* end_source_file) (unsigned int line);
-
- void (* begin_block) (unsigned int line, unsigned int n);
-
- void (* end_block) (unsigned int line, unsigned int n);
-
- bool (* ignore_block) (const_tree);
-
- void (* source_line) (unsigned int line, const char *file,
- int discriminator, bool is_stmt);
-
- void (* begin_prologue) (unsigned int line, const char *file);
-
- void (* end_prologue) (unsigned int line, const char *file);
-
- void (* begin_epilogue) (unsigned int line, const char *file);
-
- void (* end_epilogue) (unsigned int line, const char *file);
-
- void (* begin_function) (tree decl);
-
- void (* end_function) (unsigned int line);
-
- void (* register_main_translation_unit) (tree);
-
- void (* function_decl) (tree decl);
-
- void (* global_decl) (tree decl);
-
- void (* type_decl) (tree decl, int local);
-
- void (* imported_module_or_decl) (tree decl, tree name,
- tree context, bool child);
-
- void (* deferred_inline_function) (tree decl);
-
- void (* outlining_inline_function) (tree decl);
-
- void (* label) (rtx_code_label *);
-
- void (* handle_pch) (unsigned int);
-
- void (* var_location) (rtx_insn *);
-
- void (* switch_text_section) (void);
-
- void (* set_name) (tree, tree);
-
- int start_end_main_source_file;
-
- int tree_type_symtab_field;
- };
- extern const struct gcc_debug_hooks *debug_hooks;
- extern void debug_nothing_void (void);
- extern void debug_nothing_charstar (const char *);
- extern void debug_nothing_int_charstar (unsigned int, const char *);
- extern void debug_nothing_int_charstar_int_bool (unsigned int, const char *,
- int, bool);
- extern void debug_nothing_int (unsigned int);
- extern void debug_nothing_int_int (unsigned int, unsigned int);
- extern void debug_nothing_tree (tree);
- extern void debug_nothing_tree_tree (tree, tree);
- extern void debug_nothing_tree_int (tree, int);
- extern void debug_nothing_tree_tree_tree_bool (tree, tree, tree, bool);
- extern bool debug_true_const_tree (const_tree);
- extern void debug_nothing_rtx_insn (rtx_insn *);
- extern void debug_nothing_rtx_code_label (rtx_code_label *);
- extern const struct gcc_debug_hooks do_nothing_debug_hooks;
- extern const struct gcc_debug_hooks dbx_debug_hooks;
- extern const struct gcc_debug_hooks sdb_debug_hooks;
- extern const struct gcc_debug_hooks xcoff_debug_hooks;
- extern const struct gcc_debug_hooks dwarf2_debug_hooks;
- extern const struct gcc_debug_hooks vmsdbg_debug_hooks;
- extern void dwarf2out_begin_prologue (unsigned int, const char *);
- extern void dwarf2out_vms_end_prologue (unsigned int, const char *);
- extern void dwarf2out_vms_begin_epilogue (unsigned int, const char *);
- extern void dwarf2out_end_epilogue (unsigned int, const char *);
- extern void dwarf2out_frame_finish (void);
- extern bool dwarf2out_do_frame (void);
- extern bool dwarf2out_do_cfi_asm (void);
- extern void dwarf2out_switch_text_section (void);
- const char *remap_debug_filename (const char *);
- void add_debug_prefix_map (const char *);
- extern const struct gcc_debug_hooks *
- dump_go_spec_init (const char *, const struct gcc_debug_hooks *);
- #endif
|