/* Write out main source file name using ".file" rather than ".stabs". */
#define DBX_OUTPUT_MAIN_SOURCE_FILENAME(FILE,FILENAME) \
- fprintf (FILE, "\t.file\t\"%s\"\n", FILENAME);
+ do { \
+ fprintf (FILE, "\t.file\t", FILENAME); \
+ output_quoted_string (FILE, FILENAME); \
+ fprintf (FILE, "\n"); \
+ } while (0)
#define ABS_OR_RELATIVE_LINENO(LINENO) \
((xcoff_current_include_file \
#define DBX_OUTPUT_SOURCE_FILENAME(FILE, FILENAME) \
{ \
if (xcoff_current_include_file) \
- fprintf (FILE, "\t.ei\t\"%s\"\n", xcoff_current_include_file);\
+ { \
+ fprintf (FILE, "\t.ei\t"); \
+ output_quoted_string (FILE, xcoff_current_include_file); \
+ fprintf (FILE, "\n"); \
+ } \
if (strcmp (main_input_filename, FILENAME)) \
{ \
- fprintf (FILE, "\t.bi\t\"%s\"\n", FILENAME); \
+ fprintf (FILE, "\t.bi\t"); \
+ output_quoted_string (FILE, FILENAME); \
+ fprintf (FILE, "\n"); \
xcoff_current_include_file = FILENAME; \
} \
else \
{ \
if (xcoff_current_include_file) \
{ \
- fprintf ((FILE), "\t.ei\t\"%s\"\n", \
- xcoff_current_include_file); \
+ fprintf (FILE, "\t.ei\t"); \
+ output_quoted_string (FILE, xcoff_current_include_file); \
+ fprintf (FILE, "\n"); \
xcoff_current_include_file = NULL; \
} \
}