aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2014-01-28 15:31:23 -0200
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2014-01-28 15:31:23 -0200
commit8b9247296737f91bae153207f4380f35c61ef656 (patch)
tree4336f4c90923cc01654c590a119fb0e029d1a25a /gdb/testsuite
parentfa0079ea727e512d592fff1241a82a0a2f628903 (diff)
downloadgdb-8b9247296737f91bae153207f4380f35c61ef656.zip
gdb-8b9247296737f91bae153207f4380f35c61ef656.tar.gz
gdb-8b9247296737f91bae153207f4380f35c61ef656.tar.bz2
Fix info-shared.exp testcase to expect the leading `.' found on ppc64's symbols.
gdb/testsuite/ 2014-01-28 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> * gdb.base/info-shared.exp: Expect leading `.' on ppc64's symbols.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/info-shared.exp20
2 files changed, 14 insertions, 10 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 219bc11..58361ef 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-01-28 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
+
+ * gdb.base/info-shared.exp: Expect leading `.' on ppc64's symbols.
+
2014-01-23 Tom Tromey <tromey@redhat.com>
* gdb.ada/array_char_idx: New testcase.
diff --git a/gdb/testsuite/gdb.base/info-shared.exp b/gdb/testsuite/gdb.base/info-shared.exp
index b7be174..a7cbe1d 100644
--- a/gdb/testsuite/gdb.base/info-shared.exp
+++ b/gdb/testsuite/gdb.base/info-shared.exp
@@ -89,18 +89,18 @@ gdb_breakpoint "foo" allow-pending
gdb_breakpoint "bar" allow-pending
# Run to the first stop and check that only the first library is loaded.
-gdb_continue_to_breakpoint "library load #1" "stop .*"
+gdb_continue_to_breakpoint "library load #1" "\\.?stop .*"
check_info_shared "info sharedlibrary #2" 1 0
# Run to the second stop and check that both libraries are loaded.
-gdb_continue_to_breakpoint "library load #2" "stop .*"
+gdb_continue_to_breakpoint "library load #2" "\\.?stop .*"
check_info_shared "info sharedlibrary #3" 1 1
# Check that the next stop is in foo.
-gdb_continue_to_breakpoint "library function #1" "foo .*"
+gdb_continue_to_breakpoint "library function #1" "\\.?foo .*"
# Check that the next stop is in bar.
-gdb_continue_to_breakpoint "library function #2" "bar .*"
+gdb_continue_to_breakpoint "library function #2" "\\.?bar .*"
# Restart the inferior and make sure there are no breakpoint reset
# errors. These can happen with the probes-based runtime linker
@@ -124,23 +124,23 @@ gdb_test_multiple "" $test {
check_info_shared "info sharedlibrary #4" 0 0
# Run to the first stop and check that only the first library is loaded.
-gdb_continue_to_breakpoint "library load #3" "stop .*"
+gdb_continue_to_breakpoint "library load #3" "\\.?stop .*"
check_info_shared "info sharedlibrary #5" 1 0
# Run to the second stop and check that both libraries are loaded.
-gdb_continue_to_breakpoint "library load #4" "stop .*"
+gdb_continue_to_breakpoint "library load #4" "\\.?stop .*"
check_info_shared "info sharedlibrary #6" 1 1
# Check that the next stop is in foo.
-gdb_continue_to_breakpoint "library function #3" "foo .*"
+gdb_continue_to_breakpoint "library function #3" "\\.?foo .*"
# Check that the next stop is in bar.
-gdb_continue_to_breakpoint "library function #4" "bar .*"
+gdb_continue_to_breakpoint "library function #4" "\\.?bar .*"
# Run to the next stop and check that the first library has been unloaded.
-gdb_continue_to_breakpoint "library unload #1" "stop .*"
+gdb_continue_to_breakpoint "library unload #1" "\\.?stop .*"
check_info_shared "info sharedlibrary #7" 0 1
# Run to the last stop and check that both libraries are gone.
-gdb_continue_to_breakpoint "library unload #2" "stop .*"
+gdb_continue_to_breakpoint "library unload #2" "\\.?stop .*"
check_info_shared "info sharedlibrary #8" 0 0