aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-23 06:04:21 +0000
committerRichard Stallman <rms@gnu.org>1992-07-23 06:04:21 +0000
commit674c724c646a60c166d5c2f4389abb52cf6f7f45 (patch)
tree514994096e38bd13d5ec225956a1508fe63576f3
parente8d6096cebf3cb47d430503ac2e445a74d7edad6 (diff)
downloadgcc-674c724c646a60c166d5c2f4389abb52cf6f7f45.zip
gcc-674c724c646a60c166d5c2f4389abb52cf6f7f45.tar.gz
gcc-674c724c646a60c166d5c2f4389abb52cf6f7f45.tar.bz2
(dbxout_source_line): New function.
From-SVN: r1664
-rw-r--r--gcc/dbxout.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 1633330..8f7cf7f 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -499,6 +499,24 @@ dbxout_source_file (file, filename)
}
}
+/* Output a line number symbol entry into output stream FILE,
+ for source file FILENAME and line number LINENO. */
+
+void
+dbxout_source_line (file, filename, lineno)
+ FILE *file;
+ char *filename;
+ int lineno;
+{
+ dbxout_source_file (file, filename);
+
+#ifdef ASM_OUTPUT_SOURCE_LINE
+ ASM_OUTPUT_SOURCE_LINE (file, lineno);
+#else
+ fprintf (file, "\t%s %d,0,%d\n", ASM_STABD_OP, N_SLINE, lineno);
+#endif
+}
+
/* At the end of compilation, finish writing the symbol table.
Unless you define DBX_OUTPUT_MAIN_SOURCE_FILE_END, the default is
to do nothing. */