FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git] / none / tests / x86-solaris / coredump_single_thread_mdb
blobb0053c60e600ee02b1730e19c11eb394ee0b8fd5
1 #!/bin/sh
3 # Filters are not run for post-test check commands.
4 # Filter everything here.
6 echo "---Status---"
7 echo "::status" | /usr/bin/mdb vgcore.* | \
8 perl -p -e 's/from \S*$/from .../' | \
9 perl -0 -p -e 's/^file: .+?^(initial argv:)/$1/ms' | \
10 sed '/^threading model:/ d' | \
11 perl -p -e 's/addr=[0-9A-Fa-f]+/addr=......../g'
13 echo "\n---Registers---"
14 echo "::regs" | /usr/bin/mdb vgcore.* | \
15 perl -p -e 's/(%[cdsefg]s)\s+=\s+0x[0-9A-Fa-f]+/$1 = 0x......../' | \
16 perl -p -e 's/%eip\s+=\s+0x[0-9A-Fa-f]+(.*)\+0x[0-9A-Fa-f]+$/%eip = 0x........ $1+0x......../' | \
17 sed '/%ebp/ d' | \
18 sed '/^%eflags/ d' | \
19 sed '/id=/ d' | \
20 sed '/status=/ d'
22 echo "\n---Stack trace---"
23 echo "::stack ! perl -p -e 's/^(\S+)\+.*/\$1/g'" | /usr/bin/mdb vgcore.*