aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1995-12-13 20:00:25 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1995-12-13 20:00:25 +0000
commit1a6281cb9c573a533f6d5203b16faa0b670915a8 (patch)
tree7ccd9b5aa199c9e0e5cdafdb53e057bf67526eb8 /gcc
parent19d2d16f76cb7db71bf791d0a6ee97dbaf85e004 (diff)
downloadgcc-1a6281cb9c573a533f6d5203b16faa0b670915a8.zip
gcc-1a6281cb9c573a533f6d5203b16faa0b670915a8.tar.gz
gcc-1a6281cb9c573a533f6d5203b16faa0b670915a8.tar.bz2
Call new dbxout functions when changing source files.
From-SVN: r10705
Diffstat (limited to 'gcc')
-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 007b363..edb7075 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)