1 http://sourceware.org/ml/gdb-patches/2012-08/msg00500.html
2 Subject: [patch] testsuite: Make solib-corrupted.exp untested for probes [Re: [RFA 0/4 take 2] Improved linker-debugger interface]
4 On Fri, 17 Aug 2012 22:53:53 +0200, Jan Kratochvil wrote:
5 > It regresses with glibc-debuginfo installed:
8 > From To Syms Read Shared Object Library^M
9 > 0x00007ffff7ddcb20 0x00007ffff7df63d9 Yes /lib64/ld-linux-x86-64.so.2^M
10 > 0x00007ffff7ae05b0 0x00007ffff7b4ad78 Yes /lib64/libm.so.6^M
11 > 0x00007ffff77431a0 0x00007ffff7883cf0 Yes /lib64/libc.so.6^M
12 > (gdb) FAIL: gdb.base/solib-corrupted.exp: corrupted list
14 > But I guess there is no longer a way to test it with probes so it should just
15 > run some 'info probes' and make this test UNTESTED if rtld probes are
18 I had to implement it for Fedora already anyway.
26 2012-08-18 Jan Kratochvil <jan.kratochvil@redhat.com>
28 * gdb.base/solib-corrupted.exp: New variable probes.
29 (info probes): New test.
31 diff --git a/gdb/testsuite/gdb.base/solib-corrupted.exp b/gdb/testsuite/gdb.base/solib-corrupted.exp
32 index 84b3b0c..c9f55d6 100644
33 --- a/gdb/testsuite/gdb.base/solib-corrupted.exp
34 +++ b/gdb/testsuite/gdb.base/solib-corrupted.exp
35 @@ -36,6 +36,33 @@ if ![runto_main] {
39 +# With probes interface GDB no longer scans the inferior library list so its
40 +# corruption cannot be tested. There is no way to disable the probes
43 +set probes { init_start init_complete map_start reloc_complete unmap_start
45 +set test "info probes"
46 +gdb_test_multiple $test $test {
47 + -re "^rtld\[ \t\]+(?:rtld_)?(\[a-z_\]+)\[ \t\]" {
48 + set idx [lsearch -exact $probes $expect_out(1,string)]
50 + set probes [lreplace $probes $idx $idx]
54 + -re "^\[^\r\n\]*\r\n" {
57 + -re "^$gdb_prompt $" {
60 +if { [llength $probes] == 0 } {
62 + untested "GDB is using probes"
66 gdb_test "info sharedlibrary" "From * To .*" "normal list"
68 # GDB checks there for matching L_PREV.