aboutsummaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-07-10 18:44:34 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-07-10 18:44:34 +0000
commita51d908e98573a9569a8cc2d14767ca4fb9e9777 (patch)
treebf9ce8c7e5bc03d0da6a7ffad30060744e0c393f /gcc/sdbout.c
parentbaed53ac34be7516b226afc7ffd033e4aef3c67e (diff)
downloadgcc-a51d908e98573a9569a8cc2d14767ca4fb9e9777.zip
gcc-a51d908e98573a9569a8cc2d14767ca4fb9e9777.tar.gz
gcc-a51d908e98573a9569a8cc2d14767ca4fb9e9777.tar.bz2
Makefile.in (toplev.o, [...]): Depend on debug.h, wrap long lines.
* Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o, dwarf2out.o): Depend on debug.h, wrap long lines. * dbxout.c: Include debug.h. (dbx_debug_hooks): New. (dbxout_init): Make static, take just 2 args. (dbxout_finish): Make static. * dbxout.h (dbxout_init, dbxout_finish): Delete. * debug.c: New file. * debug.h: New file. * dwarf2out.c: Include debug.h. (dwarf2_debug_hooks): New. (dwarf2out_init): Make static. (dwarf2out_finish): Make static, take 2 args. * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete. * dwarfout.c: Include debug.h. (dwarf_debug_hooks): New. (dwarfout_init): Make static. (dwarfout_finish): Make static, take 2 args. * dwarfout.h (dwarfout_init, dwarfout_finish): Delete. * sdbout.c: Include debug.h. (sdb_debug_hooks): New. (sdbout_init): Make static, take 2 args. * sdbout.h (sdbout_init): Delete. * toplev.c: Include debug.h. (debug_hooks): New. (compile_file): Set deubg_hooks based on command line options. Use the hooks unconditionally rather than conditional compilation. From-SVN: r43908
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index a576719..4bf3247 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -57,6 +57,7 @@ AT&T C compiler. From the example below I would conclude the following:
#include "ggc.h"
#include "tm_p.h"
#include "gsyms.h"
+#include "debug.h"
/* 1 if PARM is passed to this function in memory. */
@@ -91,6 +92,7 @@ extern tree current_function_decl;
#include "sdbout.h"
+static void sdbout_init PARAMS ((FILE *, const char *));
static char *gen_fake_label PARAMS ((void));
static int plain_type PARAMS ((tree));
static int template_name_p PARAMS ((tree));
@@ -287,7 +289,13 @@ static struct sdb_file *current_file;
#endif /* MIPS_DEBUGGING_INFO */
-
+/* The target debug structure. */
+struct gcc_debug_hooks sdb_debug_hooks =
+{
+ sdbout_init,
+ debug_nothing_init_finish
+};
+
#if 0
/* return the tag identifier for type
@@ -1607,11 +1615,10 @@ sdbout_resume_previous_source_file ()
/* Set up for SDB output at the start of compilation. */
-void
-sdbout_init (asm_file, input_file_name, syms)
+static void
+sdbout_init (asm_file, input_file_name)
FILE *asm_file ATTRIBUTE_UNUSED;
const char *input_file_name ATTRIBUTE_UNUSED;
- tree syms ATTRIBUTE_UNUSED;
{
#ifdef MIPS_DEBUGGING_INFO
current_file = (struct sdb_file *) xmalloc (sizeof *current_file);
@@ -1621,7 +1628,7 @@ sdbout_init (asm_file, input_file_name, syms)
#ifdef RMS_QUICK_HACK_1
tree t;
- for (t = syms; t; t = TREE_CHAIN (t))
+ for (t = getdecls (); t; t = TREE_CHAIN (t))
if (DECL_NAME (t) && IDENTIFIER_POINTER (DECL_NAME (t)) != 0
&& !strcmp (IDENTIFIER_POINTER (DECL_NAME (t)), "__vtbl_ptr_type"))
sdbout_symbol (t, 0);