* [Patch] Regexp fix for gas-test.scm
@ 2001-05-10 19:24 Ben Elliston
0 siblings, 0 replies; only message in thread
From: Ben Elliston @ 2001-05-10 19:24 UTC (permalink / raw)
To: cgen
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' \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-10 19:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-10 19:24 [Patch] Regexp fix for gas-test.scm Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).