* [testsuite, patch] Match __uClibc_main in ending-run.exp
@ 2011-06-01 15:02 Yao Qi
2011-06-01 15:16 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Yao Qi @ 2011-06-01 15:02 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
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 (é½å°§)
[-- Attachment #2: ending_run_uclibc.patch --]
[-- Type: text/x-patch, Size: 707 bytes --]
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,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-01 15:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 15:02 [testsuite, patch] Match __uClibc_main in ending-run.exp Yao Qi
2011-06-01 15:16 ` Pedro Alves
2011-06-01 15:57 ` [committed] " Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox