blob: 431352b22262ad6e90a28ef8289987a5e9872810 [file] [log] [blame]
sewardj3b290482011-05-06 21:02:55 +00001#! /bin/sh
2
sewardjd142f992011-05-17 17:15:07 +00003# used to filter memcheck output shown by gdb/vgdb.
sewardj3b290482011-05-06 21:02:55 +00004
5dir=`dirname $0`
6
florian3dfe9792011-10-03 23:39:54 +00007$dir/../memcheck/tests/filter_stderr "$@" |
sewardj3b290482011-05-06 21:02:55 +00008
9# filter vgdb messages
10$dir/filter_vgdb |
11
12
sewardjd142f992011-05-17 17:15:07 +000013
14# filter some normal error messages provided by some gdb
15#
16# gdb 7.2 sometimes tries to access address 0x0 (same as with standard gdbserver)
17#
18# filter a debian 6.0/ppc32 line
19#
20# filter some missing info msg from s390
21#
sewardj3b290482011-05-06 21:02:55 +000022# Bypass a s390x kernel bug which makes faultstatus test3 fail. In our case, we are
23# not interested in checking the si_code, but rather the signal passing
24# in mcsig(no)pass
Elliott Hughesa0664b92017-04-18 17:46:52 -070025#
26# When doing inferior function calls from gdb (in mcmain_pic) there might be
27# extra heap usage from gdb that we aren't interested in tracking.
28#
sewardjd142f992011-05-17 17:15:07 +000029sed -e '/Cannot access memory at address 0x......../d' \
30 -e '/^[1-9][0-9]* \.\.\/sysdeps\/powerpc\/powerpc32\/dl-start\.S: No such file or directory\./d' \
31 -e '/^Missing separate debuginfo/d' \
32 -e '/^Try: zypper install -C/d' \
Elliott Hughesa0664b92017-04-18 17:46:52 -070033 -e 's/Test 3: FAIL: expected si_code==2, not 128/Test 3: PASS/' \
34 -e '/^ total heap usage: /d'