summaryrefslogtreecommitdiff
path: root/gcc/debug.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-11 20:51:46 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-11 20:51:46 +0000
commitc140b9445b045f733932e632775a4ef2a9c967a0 (patch)
tree8208475fab02ce7a5ccefba302810842e545181a /gcc/debug.c
parentab6ab77eb56d4b512c625b36f4c4335d216fe19f (diff)
downloadgcc-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/debug.c')
-rw-r--r--gcc/debug.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/gcc/debug.c b/gcc/debug.c
index 9d6e880a037..0b750ac7870 100644
--- a/gcc/debug.c
+++ b/gcc/debug.c
@@ -22,16 +22,33 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* The do-nothing debug hooks. */
struct gcc_debug_hooks do_nothing_debug_hooks =
{
- debug_nothing_init_finish,
- debug_nothing_init_finish
+ debug_nothing_file_charstar,
+ debug_nothing_file_charstar,
+ debug_nothing_int_charstar,
+ debug_nothing_int_charstar,
+ debug_nothing_int_charstar,
+ debug_nothing_int
};
/* This file contains implementations of each debug hook that do
nothing. */
void
-debug_nothing_init_finish (file, main_filename)
+debug_nothing_file_charstar (file, main_filename)
FILE *file ATTRIBUTE_UNUSED;
const char *main_filename ATTRIBUTE_UNUSED;
{
}
+
+void
+debug_nothing_int_charstar (line, text)
+ unsigned int line ATTRIBUTE_UNUSED;
+ const char *text ATTRIBUTE_UNUSED;
+{
+}
+
+void
+debug_nothing_int (line)
+ unsigned int line ATTRIBUTE_UNUSED;
+{
+}