* gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt

in gdb_test_multiple.
This commit is contained in:
Pedro Alves 2010-07-29 23:19:46 +00:00
parent f09c177238
commit 88caa9b922
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-07-29 Pedro Alves <pedro@codesourcery.com>
* gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt
in gdb_test_multiple.
2010-07-29 Pedro Alves <pedro@codesourcery.com>
* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the

View File

@ -269,16 +269,16 @@ proc check_backtraces {} {
"set break at common_routine in thread 2"
gdb_test_multiple "continue" "continue to bkpt at common_routine in thread 2" {
-re "Breakpoint .* common_routine \\(arg=2\\).*" {
-re "Breakpoint .* common_routine \\(arg=2\\).*$gdb_prompt $" {
pass "continue to bkpt at common_routine in thread 2"
gdb_test "backtrace" \
"#0.*common_routine \\(arg=2\\).*#1.*thread2.*" \
"backtrace from thread 2 bkpt in common_routine"
}
-re "Breakpoint .* common_routine \\(arg=0\\).*" {
-re "Breakpoint .* common_routine \\(arg=0\\).*$gdb_prompt $" {
fail "continue to bkpt at common_routine in thread 2 (arg=0)"
}
-re "Breakpoint .* common_routine \\(arg=1\\).*" {
-re "Breakpoint .* common_routine \\(arg=1\\).*$gdb_prompt $" {
fail "continue to bkpt at common_routine in thread 2 (arg=1)"
}
}