3 # In case the test binary contains debug line info first change
4 # bad0.c:?? to a (bogus) binary path /foobar/tests/amd64-linux/defcfaexpr/
8 # ==6019== at 0x400512: bbb (in
9 # /home/sewardj/VgTRUNK/trunk/memcheck/tests/amd64/defcfaexpr)
13 # ==6019== at 0x400512: bbb (in bogus.S:0)
17 # ==6019== at 0x400512: bbb (bogus.S:0)
19 # Then the standard ./filter_stderr won't screw it up any more,
20 # instead producing what we want, which is
22 # at 0x........: bbb (bogus.S:0)
24 # where the important point is that the function name is intact.
25 # since the point of this test is to check that V can unwind the
26 # stack given the unusual CFAs describing it.
29 sed "s/bad0.c:[0-9]\+/\/foobar\/tests\/amd64-linux\/defcfaexpr/" | \
30 .
/filter_stderr
"$@" | \
31 sed "s/\/.*\/tests\/amd64-linux\/defcfaexpr/bogus.S:0/" | \