1# test that gdbserver/gdb properly handle a PIC executable
2# On linux, this implies a proper transfer of the auxv
3# information via the gdbserver protocol packet qXfer:auxv:read:
4# The content of the auxv data can be shown by gdb using
5# gdb command 'info auxv'
6prereq: test -e gdb.pic && if ../tests/arch_test mips32 || ../tests/arch_test mips64 ; then  echo "set heuristic-fence-post 999999"  ; else  echo '' ; fi > mcmain_pic.heur
7prog: main_pic
8vgopts: --tool=memcheck --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcmain_pic
9stdout_filter: filter_gdb
10stderr_filter: filter_memcheck_monitor
11progB: gdb
12argsB: --quiet -l 60 --nx ./main_pic
13stdinB: mcmain_pic.stdinB.gdb
14stdoutB_filter: filter_gdb
15stderrB_filter: filter_memcheck_monitor
16
17