summaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-13 20:00:25 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-13 20:00:25 +0000
commite9d523de42fa6ea3fca27322bfbc6dabaa9dd97a (patch)
tree7ccd9b5aa199c9e0e5cdafdb53e057bf67526eb8 /gcc/c-lex.c
parent66455505b66e6cd569d5142399c4007e66f1d5fb (diff)
downloadgcc-e9d523de42fa6ea3fca27322bfbc6dabaa9dd97a.tar.gz
Call new dbxout functions when changing source files.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 007b3634384..edb707583db 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -590,6 +590,10 @@ linenum:
p->name = input_filename;
input_file_stack = p;
input_file_stack_tick++;
+#ifdef DBX_DEBUGGING_INFO
+ if (write_symbols == DBX_DEBUG)
+ dbxout_start_new_source_file (input_filename);
+#endif
#ifdef DWARF_DEBUGGING_INFO
if (debug_info_level == DINFO_LEVEL_VERBOSE
&& write_symbols == DWARF_DEBUG)
@@ -607,6 +611,10 @@ linenum:
input_file_stack = p->next;
free (p);
input_file_stack_tick++;
+#ifdef DBX_DEBUGGING_INFO
+ if (write_symbols == DBX_DEBUG)
+ dbxout_resume_previous_source_file ();
+#endif
#ifdef DWARF_DEBUGGING_INFO
if (debug_info_level == DINFO_LEVEL_VERBOSE
&& write_symbols == DWARF_DEBUG)