diff options
author | Alan Modra <amodra@gmail.com> | 2022-09-28 22:56:41 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-09-28 23:01:56 +0930 |
commit | e2bae06cf91bd6d505705432eebc32cb246a690b (patch) | |
tree | de374c57a3d4854654200ec673eb1daa11a2bb31 /ld | |
parent | 93362ef59ee13aa8ec7c09897c00e15f3ce38b7b (diff) | |
download | gdb-e2bae06cf91bd6d505705432eebc32cb246a690b.zip gdb-e2bae06cf91bd6d505705432eebc32cb246a690b.tar.gz gdb-e2bae06cf91bd6d505705432eebc32cb246a690b.tar.bz2 |
Re: egrep in binutils
Multi-line patterns for grep are not supported on some old versions
of grep.
binutils/
* embedspu.sh: Replace multi-line grep with sed.
ld/
* testsuite/ld-elfvers/vers.exp: Replace multi-line grep with sed.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elfvers/vers.exp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 9af6bb9..3e2ba2a 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -109,9 +109,7 @@ proc test_ar { test lib object expect } { return } - set cmd "$nm --print-armap $tmpdir/$lib | grep \" in \" | grep \"VERS -bar -foo\" | grep -v ^\\\\. | sort > $tmpdir/nm.out" + set cmd "$nm --print-armap $tmpdir/$lib | sed -n -e /^\\\\./d -e \"/^VERS.* in /p\" -e \"/bar.* in /p\" -e \"/foo.* in /p\" | sort > $tmpdir/nm.out" verbose -log $cmd catch "exec $cmd" exec_output if [string match "" $exec_output] then { |