diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-07-19 06:22:04 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-07-19 06:22:04 +0000 |
commit | 2b85879e637df70ff99b3d7bbea2dd0997cc907f (patch) | |
tree | b1d514bcbcb3022999013a3add1442cb71310221 /gcc/debug.h | |
parent | c60e94a70efc44dd419ec5119dad3aa7813949d3 (diff) | |
download | gcc-2b85879e637df70ff99b3d7bbea2dd0997cc907f.tar.gz |
Makefile.in (toplev.o, [...]): Don't depend on dwarfout.h.
* Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
dwarfout.h.
* dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
to conditionally compiled block.
(dbx_debug_hooks, xcoff_debug_hooks): Update.
* dbxout.h (dbxout_function): Remove.
* debug.c (do_nothing_debug_hooks): Update.
* debug.h (struct gcc_debug_hooks): New hooks function_decl,
global_decl, deferred_inline_function.
* dwarf2out.c (dwarf2_debug_hooks): Update.
(dwarf2out_global_decl): New.
* dwarfout.c: Don't include dwarfout.h.
(dwarfout_global_decl, dwarfout_function_decl,
dwarfout_deferred_inline_function): New.
(dwarf_debug_hooks): Update.
* dwarfout.h: Remove.
* final.c: Don't include dwarfout.h.
* sdbout.c (sdbout_global_decl): New.
(sdbout_debug_hooks): Update.
* toplev.c: Don't include dwarfout.h.
(check_global_declarations, rest_of_compilation): Use new debug hooks.
(note_deferral_of_defined_inline_function): Remove.
* toplev.h (note_deferral_of_defined_inline_function): Remove.
* ch/Makefile.in (lex.o): No dependence on dwarfout.h.
* ch/lex.c: Don't include dwarfout.h.
* cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
(semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
* cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
* cp/optimize.c: Include debug.h.
(maybe_clone_body): Use debug hook.
* cp/semantics.c: Include debug.h.
(expand_body): Use debug hook.
* po/POTFILES.in: Remove dwarfout.h.
From-SVN: r44145
Diffstat (limited to 'gcc/debug.h')
-rw-r--r-- | gcc/debug.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/debug.h b/gcc/debug.h index 56b2e033f22..4a74bee83be 100644 --- a/gcc/debug.h +++ b/gcc/debug.h @@ -73,6 +73,20 @@ struct gcc_debug_hooks /* Record end of function. LINE is highest line number in function. */ void (* end_function) PARAMS ((unsigned int line)); + + /* Debug information for a function DECL. This might include the + function name (a symbol), its parameters, and the block that + makes up the function's body, and the local variables of the + function. */ + void (* function_decl) PARAMS ((union tree_node *decl)); + + /* Debug information for a global DECL. Called from toplev.c after + compilation proper has finished. */ + void (* global_decl) PARAMS ((union tree_node *decl)); + + /* DECL is an inline function, whose body is present, but which is + not being output at this point. */ + void (* deferred_inline_function) PARAMS ((union tree_node *decl)); }; extern struct gcc_debug_hooks *debug_hooks; |