diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-11 20:51:46 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-11 20:51:46 +0000 |
commit | c140b9445b045f733932e632775a4ef2a9c967a0 (patch) | |
tree | 8208475fab02ce7a5ccefba302810842e545181a /gcc/c-lex.c | |
parent | ab6ab77eb56d4b512c625b36f4c4335d216fe19f (diff) | |
download | gcc-c140b9445b045f733932e632775a4ef2a9c967a0.tar.gz |
* Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
* c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
hooks directly.
* dbxout.c (dbx_debug_hooks): Add new hooks.
(dbxout_start_new_source_file): Rename dbxout_start_source_file,
make static.
(dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
make static.
* dbxout.h (dbxout_start_new_source_file,
dbxout_resume_previous_source_file): Delete.
* debug.c (do_nothing_debug_hooks): Add new hooks.
(debug_nothing_init_finish): Rename debug_nothing_file_charstar.
(debug_nothing_int_charstar, debug_nothing_int): New.
* debug.h (gcc_debug_hooks): New hooks define, undef,
start_source_file and end_source_file.
(debug_nothing_init_finish): Rename debug_nothing_file_charstar.
(debug_nothing_int_charstar, debug_nothing_int): New.
* dwarf2out.c (dwarf2_debug_hooks): Add new hooks.
(dwarf2out_start_source_file, dwarf2out_end_source_file,
dwarf2out_define, dwarf2out_undef): Make static.
* dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
dwarf2out_define, dwarf2out_undef): Remove.
* dwarfout.c (dwarf_debug_hooks): Add new hooks.
(dwarfout_start_source_file, dwarfout_end_source_file,
dwarfout_define, dwarfout_undef): Make static.
(dwarfout_start_source_file_check,
dwarfout_end_source_file_check): New.
(dwarfout_define, dwarfout_finish): Update.
* dwarfout.h (dwarfout_start_new_source_file,
dwarfout_resume_previous_source_file, dwarfout_define,
dwarfout_undef): Remove.
* sdbout.c (sdb_debug_hooks): Add new hooks.
(sdbout_start_new_source_file): Rename sdbout_start_source_file,
make static.
(sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
make static, take an arg.
* sdbout.h (sdbout_start_new_source_file,
sdbout_resume_previous_source_file): Delete.
* toplev.c (debug_start_source_file, debug_end_source_file,
debug_define, debug_undef): Delete.
* toplev.h (debug_start_source_file, debug_end_source_file,
debug_define, debug_undef): Delete.
* java/jcf-parse.c: Include debug.h.
(parse_class_file): Update to use debug hooks directly.
* java/Make-lang.in (jcf-parse.o): Depend on debug.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43952 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 714de0c807f..02c85a0e5ec 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA. */ #include "intl.h" #include "tm_p.h" #include "splay-tree.h" +#include "debug.h" /* MULTIBYTE_CHARS support only works for native compilers. ??? Ideally what we want is to model widechar support after @@ -249,7 +250,7 @@ cb_file_change (pfile, fc) lineno = fc->from.lineno; push_srcloc (fc->to.filename, 1); input_file_stack->indent_level = indent_level; - debug_start_source_file (fc->from.lineno, fc->to.filename); + (*debug_hooks->start_source_file) (fc->from.lineno, fc->to.filename); #ifndef NO_IMPLICIT_EXTERN_C if (c_header_level) ++c_header_level; @@ -287,7 +288,7 @@ cb_file_change (pfile, fc) } #endif pop_srcloc (); - debug_end_source_file (input_file_stack->line); + (*debug_hooks->end_source_file) (input_file_stack->line); } else error ("leaving more files than we entered"); @@ -334,16 +335,18 @@ cb_define (pfile, node) cpp_reader *pfile; cpp_hashnode *node; { - debug_define (cpp_get_line (parse_in)->line, (const char *) cpp_macro_definition (pfile, node)); + (*debug_hooks->define) (cpp_get_line (pfile)->line, + (const char *) cpp_macro_definition (pfile, node)); } /* #undef callback for DWARF and DWARF2 debug info. */ static void cb_undef (pfile, node) - cpp_reader *pfile ATTRIBUTE_UNUSED; + cpp_reader *pfile; cpp_hashnode *node; { - debug_undef (cpp_get_line (parse_in)->line, (const char *) NODE_NAME (node)); + (*debug_hooks->undef) (cpp_get_line (pfile)->line, + (const char *) NODE_NAME (node)); } #if 0 /* not yet */ |