]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix gdb.base/solib-corrupted.exp after dtrace probes changes
authorPedro Alves <palves@redhat.com>
Fri, 20 Feb 2015 23:10:53 +0000 (23:10 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 20 Feb 2015 23:10:53 +0000 (23:10 +0000)
Commit 6f9b8491 (Adapt `info probes' to support printing probes of
different types.) added a new type column to "info probes".  That
caused a solib-corrupted.exp regression:

 ~~~~~~~~~~~~~~~~~~~~~
 Running /home/pedro/gdb/mygit/src/gdb/testsuite/gdb.base/solib-corrupted.exp ...
 FAIL: gdb.base/solib-corrupted.exp: corrupted list

 === gdb Summary ===

 # of expected passes            2
 # of unexpected failures        1
 ~~~~~~~~~~~~~~~~~~~~~

Tested on x86_64 Fedora 20.

gdb/testsuite/ChangeLog:
2015-02-20  Pedro Alves  <palves@redhat.com>

* gdb.base/solib-corrupted.exp: Expect "stap" as first column of
info probes.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/solib-corrupted.exp

index 2ea6940ac16f1da6984e158275a86cfd2e7d3961..1e1ee536745ee9971a2662e06a658a69e6885d0e 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-20  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/solib-corrupted.exp: Expect "stap" as first column of
+       info probes.
+
 2015-02-20  Pedro Alves  <palves@redhat.com>
 
        * gdb.threads/multi-create-ns-info-thr.exp: New file.
index 33192bc9713a0f397c7514f82473248a70748dc3..3e3a6bb86fdfe8f8cb98baeed880556ed6b93a4f 100644 (file)
@@ -44,7 +44,7 @@ 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\]" {
+    -re "^stap\[ \t\]+rtld\[ \t\]+(?:rtld_)?(\[a-z_\]+)\[ \t\]" {
        set idx [lsearch -exact $probes $expect_out(1,string)]
        if { $idx >= 0 } {
            set probes [lreplace $probes $idx $idx]