blob: 2541e9ea4ad6f988f1dab9b939cbed2089ec9599 [file] [log] [blame]
philippe1670b052014-08-15 10:27:52 +00001# connect gdb to Valgrind gdbserver:
2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-hgtls
3echo vgdb launched process attached\n
4monitor v.set vgdb-error 999999
5#
6#
7# insert break:
8break tls.c:55
9command
10set $tls_ip = main
11if test == &tests[0]
12 set $tls_ip = &race
13end
14if test == &tests[1]
15 set $tls_ip = &local
16end
17if test == &tests[2]
18 set $tls_ip = &global
19end
20if test == &tests[3]
21 set $tls_ip = &static_extern
22end
23if test == &tests[4]
24 set $tls_ip = &so_extern
25end
26if test == &tests[5]
27 set $tls_ip = &so_local
28end
29if test == &tests[6]
30 set $tls_ip = &global
31end
32printf "test %s tls_ip %p ip %p equal %d\n", test->name, $tls_ip, ip, $tls_ip == ip
33continue
34end
35# continue till the end
36continue
37quit