Commit 6767265c by Paul Eggert

(DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_MAIN_SOURCE_FILENAME):

Quote special characters in file names.
(DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.

From-SVN: r5498
parent 7b1e8272
...@@ -124,7 +124,11 @@ extern char *xcoff_read_only_section_name; ...@@ -124,7 +124,11 @@ extern char *xcoff_read_only_section_name;
/* Write out main source file name using ".file" rather than ".stabs". */ /* Write out main source file name using ".file" rather than ".stabs". */
#define DBX_OUTPUT_MAIN_SOURCE_FILENAME(FILE,FILENAME) \ #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) \ #define ABS_OR_RELATIVE_LINENO(LINENO) \
((xcoff_current_include_file \ ((xcoff_current_include_file \
...@@ -142,10 +146,16 @@ extern char *xcoff_read_only_section_name; ...@@ -142,10 +146,16 @@ extern char *xcoff_read_only_section_name;
#define DBX_OUTPUT_SOURCE_FILENAME(FILE, FILENAME) \ #define DBX_OUTPUT_SOURCE_FILENAME(FILE, FILENAME) \
{ \ { \
if (xcoff_current_include_file) \ 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)) \ 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; \ xcoff_current_include_file = FILENAME; \
} \ } \
else \ else \
...@@ -157,8 +167,9 @@ extern char *xcoff_read_only_section_name; ...@@ -157,8 +167,9 @@ extern char *xcoff_read_only_section_name;
{ \ { \
if (xcoff_current_include_file) \ if (xcoff_current_include_file) \
{ \ { \
fprintf ((FILE), "\t.ei\t\"%s\"\n", \ fprintf (FILE, "\t.ei\t"); \
xcoff_current_include_file); \ output_quoted_string (FILE, xcoff_current_include_file); \
fprintf (FILE, "\n"); \
xcoff_current_include_file = NULL; \ xcoff_current_include_file = NULL; \
} \ } \
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment