This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[testsuite, patch] Match __uClibc_main in ending-run.exp
- From: Yao Qi <yao at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 01 Jun 2011 23:01:37 +0800
- Subject: [testsuite, patch] Match __uClibc_main in ending-run.exp
I got a FAIL in gdb.base/ending-run.exp on a port using uclibc when
matching output of "step out of main". Different outputs on different
system/libraries are considered, but uclibc is not. This patch is to
match __uClibc_main for uclibc.
OK?
--
Yao (éå)
2011-06-01 Yao Qi <yao@codesourcery.com>
gdb/testsuite/
* gdb.base/ending-run.exp: Match __uClibc_main for uClibc.
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index 9d1134d..0098f04 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -195,6 +195,10 @@ gdb_test_multiple "next" "step out of main" {
-re ".*Program received signal SIGTRAP.*$gdb_prompt $" {
pass "step out of main"
}
+ -re ".*in.*__uClibc_main.*$gdb_prompt $" {
+ # This is what happens on system using uClibc.
+ pass "step out of main"
+ }
}
# When we're talking to a program running on a real stand-alone board,