aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-03-09 23:25:59 +0000
committerAlexandre Oliva <aoliva@redhat.com>2007-03-09 23:25:59 +0000
commite9fc6c21007f3530d73cc4ba4983dc9f118af219 (patch)
treeb575273e42a88f1083c7e074e5d93b83a0ce02a8 /gas/app.c
parent6f74c397defce90b9323316d756b32d9373b874c (diff)
downloadgdb-e9fc6c21007f3530d73cc4ba4983dc9f118af219.zip
gdb-e9fc6c21007f3530d73cc4ba4983dc9f118af219.tar.gz
gdb-e9fc6c21007f3530d73cc4ba4983dc9f118af219.tar.bz2
* app.c (do_scrub_chars): Recognize comments after # line "file".
* read.c (get_linefile_number): New. (s_app_line): Accept ill-formed .linefile lines as comments.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gas/app.c b/gas/app.c
index e6b39d6..dc08f83 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -355,7 +355,7 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
5: parsing a string, then go to old-state
6: putting out \ escape in a "d string.
7: no longer used
- 8: After putting out a .appfile string, flush until newline.
+ 8: no longer used
9: After seeing symbol char in state 3 (keep 1white after symchar)
10: After seeing whitespace in state 9 (keep white before symchar)
11: After seeing a symbol character in state 0 (eg a label definition)
@@ -514,7 +514,7 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
PUT (ch);
quotechar = ch;
state = 5;
- old_state = 8;
+ old_state = 3;
}
else
{
@@ -635,16 +635,6 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
PUT (ch);
continue;
- case 8:
- do
- if ((ch = GET ()) == EOF)
- goto fromeof;
- else
- PUT (ch);
- while (ch != '\n');
- state = 0;
- continue;
-
#ifdef DOUBLEBAR_PARALLEL
case 13:
ch = GET ();