From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7940 invoked by alias); 5 Apr 2013 10:15:00 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 7921 invoked by uid 9364); 5 Apr 2013 10:15:00 -0000 Date: Fri, 05 Apr 2013 10:15:00 -0000 Message-ID: <20130405101500.7894.qmail@sourceware.org> From: gary@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] gbenson/rtld-probes: http://pkgs.fedoraproject.org/cgit/gdb.git/plain/gdb-dlopen-stap-probe-test2.patch?h=f18 X-Git-Refname: refs/heads/gbenson/rtld-probes X-Git-Reftype: branch X-Git-Oldrev: 732b63ff72c827bf5554b1ea5bc579a9405f5a4b X-Git-Newrev: ac72383262518bb91f8be8f98e53b0362367ad3b X-SW-Source: 2013-q2/txt/msg00005.txt.bz2 List-Id: The branch, gbenson/rtld-probes has been updated via ac72383262518bb91f8be8f98e53b0362367ad3b (commit) from 732b63ff72c827bf5554b1ea5bc579a9405f5a4b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit ac72383262518bb91f8be8f98e53b0362367ad3b Author: Gary Benson Date: Fri Apr 5 11:14:48 2013 +0100 http://pkgs.fedoraproject.org/cgit/gdb.git/plain/gdb-dlopen-stap-probe-test2.patch?h=f18 ----------------------------------------------------------------------- Summary of changes: gdb/testsuite/gdb.base/solib-corrupted.exp | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/gdb/testsuite/gdb.base/solib-corrupted.exp b/gdb/testsuite/gdb.base/solib-corrupted.exp index 6b703d9..4b92b8b 100644 --- a/gdb/testsuite/gdb.base/solib-corrupted.exp +++ b/gdb/testsuite/gdb.base/solib-corrupted.exp @@ -36,6 +36,33 @@ if ![runto_main] { return } +# With probes interface GDB no longer scans the inferior library list so its +# corruption cannot be tested. There is no way to disable the probes +# interface. + +set probes { init_start init_complete map_start reloc_complete unmap_start + unmap_complete } +set test "info probes" +gdb_test_multiple $test $test { + -re "^rtld\[ \t\]+(?:rtld_)?(\[a-z_\]+)\[ \t\]" { + set idx [lsearch -exact $probes $expect_out(1,string)] + if { $idx >= 0 } { + set probes [lreplace $probes $idx $idx] + } + exp_continue + } + -re "^\[^\r\n\]*\r\n" { + exp_continue + } + -re "^$gdb_prompt $" { + } +} +if { [llength $probes] == 0 } { + xfail $test + untested "GDB is using probes" + return +} + gdb_test "info sharedlibrary" "From * To .*" "normal list" # GDB checks there for matching L_PREV. hooks/post-receive -- Repository for Project Archer.