[Patch] Regexp fix for gas-test.scm
Ben Elliston
bje@redhat.com
Thu May 10 19:24:00 GMT 2001
I am about to commit the following patch under the obvious fix rule.
I'm surprised it hasn't turned up by now, but I suppose "$" is not an
overly common register prefix in practice.
Ben
2001-05-11 Ben Elliston <bje@redhat.com>
* gas-test.scm (cgen-build.sh, gentest): Escape $ with a backslash
when generating allinsn.d from objdump output. Without it, the
testsuite will treat $ as the regular expression for end of line.
Index: gas-test.scm
===================================================================
RCS file: /cvs/src/src/cgen/gas-test.scm,v
retrieving revision 1.5
diff -u -r1.5 gas-test.scm
--- gas-test.scm 2001/03/26 05:17:28 1.5
+++ gas-test.scm 2001/05/11 02:21:16
@@ -215,6 +215,7 @@
$BUILD/../binutils/objdump -dr a.out | \
sed -e 's/(/\\\\(/g' \
-e 's/)/\\\\)/g' \
+ -e 's/\\$/\\\\$/g' \
-e 's/\\[/\\\\\\[/g' \
-e 's/\\]/\\\\\\]/g' \
-e 's/[+]/\\\\+/g' \
More information about the Cgen
mailing list