aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-01-28 18:06:59 +0000
committerDoug Evans <dje@google.com>2008-01-28 18:06:59 +0000
commit0993fe0537c8bb9896bb0702c4e029b47e3e8d75 (patch)
tree732981456fd21d1f7b236763b4d1f73f0b52a836 /gdb/testsuite
parent00b2bfc1241710d4afc34d7b123a6c0ea8b609e5 (diff)
downloadgdb-0993fe0537c8bb9896bb0702c4e029b47e3e8d75.zip
gdb-0993fe0537c8bb9896bb0702c4e029b47e3e8d75.tar.gz
gdb-0993fe0537c8bb9896bb0702c4e029b47e3e8d75.tar.bz2
* gdb.base/maint.exp: Tighten patterns looking for .text/.data/.bss.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/maint.exp14
2 files changed, 11 insertions, 7 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0ceaf08..55382bc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-28 Doug Evans <dje@google.com>
+
+ * gdb.base/maint.exp: Tighten patterns looking for .text/.data/.bss.
+
2008-01-27 Jim Blandy <jimb@codesourcery.com>
* gdb.base/expand-psymtabs.exp: Doc fix to the doc fix.
diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp
index a49ee7d..af88e17 100644
--- a/gdb/testsuite/gdb.base/maint.exp
+++ b/gdb/testsuite/gdb.base/maint.exp
@@ -448,9 +448,9 @@ gdb_expect {
# If you don't have a .text section, this will require tweaking.
send_gdb "maint info sections .text\n"
gdb_expect {
- -re ".*bss.*$gdb_prompt $" { fail "maint info sections .text" }
- -re ".*data.*$gdb_prompt $" { fail "maint info sections .text" }
- -re ".* .text .*$gdb_prompt $" { pass "maint info sections .text" }
+ -re ".* \\.bss .*$gdb_prompt $" { fail "maint info sections .text" }
+ -re ".* \\.data .*$gdb_prompt $" { fail "maint info sections .text" }
+ -re ".* \\.text .*$gdb_prompt $" { pass "maint info sections .text" }
-re ".*$gdb_prompt $" { fail "maint info sections .text" }
timeout { fail "(timeout) maint info sections .text" }
}
@@ -459,8 +459,8 @@ gdb_expect {
# If your data section is tagged CODE, xfail this test.
send_gdb "maint info sections CODE\n"
gdb_expect {
- -re ".* .data .*$gdb_prompt $" { fail "maint info sections CODE" }
- -re ".* .text .*$gdb_prompt $" { pass "maint info sections CODE" }
+ -re ".* \\.data .*$gdb_prompt $" { fail "maint info sections CODE" }
+ -re ".* \\.text .*$gdb_prompt $" { pass "maint info sections CODE" }
-re ".*$gdb_prompt $" { fail "maint info sections CODE" }
timeout { fail "(timeout) maint info sections CODE" }
}
@@ -473,8 +473,8 @@ gdb_expect {
setup_xfail "*-*-*cygwin*"
send_gdb "maint info sections DATA\n"
gdb_expect {
- -re ".* .text .*$gdb_prompt $" { fail "maint info sections DATA" }
- -re ".* .data .*$gdb_prompt $" { pass "maint info sections DATA" }
+ -re ".* \\.text .*$gdb_prompt $" { fail "maint info sections DATA" }
+ -re ".* \\.data .*$gdb_prompt $" { pass "maint info sections DATA" }
-re ".*$gdb_prompt $" { fail "maint info sections DATA" }
timeout { fail "(timeout) maint info sections DATA" }
}