From 674c724c646a60c166d5c2f4389abb52cf6f7f45 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 23 Jul 1992 06:04:21 +0000 Subject: [PATCH] (dbxout_source_line): New function. From-SVN: r1664 --- gcc/dbxout.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 1633330d32d..8f7cf7f600a 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. */ -- 2.30.2