aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-10-10 04:56:43 +0000
committerIan Lance Taylor <ian@airs.com>2009-10-10 04:56:43 +0000
commitf3048a1d4770f01625461c6d967a774f5a3f8496 (patch)
treeeca9d1b7a91be25e92e33bd76ac88c277aab933e /gold/script.cc
parentec2d9b29273a260dad374eca5bbe2f7922d0bfde (diff)
downloadgdb-f3048a1d4770f01625461c6d967a774f5a3f8496.zip
gdb-f3048a1d4770f01625461c6d967a774f5a3f8496.tar.gz
gdb-f3048a1d4770f01625461c6d967a774f5a3f8496.tar.bz2
* descriptor.cc: Include <cstdio> and "binary-io.h".
(Descriptors::open): Open the files in binary mode always. * script.cc (Lex::get_token): Treat \r as whitespace.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 05a39e7..d381f55 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -743,7 +743,7 @@ Lex::get_token(const char** pp)
}
// Skip whitespace quickly.
- while (*p == ' ' || *p == '\t')
+ while (*p == ' ' || *p == '\t' || *p == '\r')
++p;
if (*p == '\n')