This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Patch] Regexp fix for gas-test.scm


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' \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]