aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/annota1.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/annota1.exp')
-rw-r--r--gdb/testsuite/gdb.base/annota1.exp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp
index 239b047..c19b945 100644
--- a/gdb/testsuite/gdb.base/annota1.exp
+++ b/gdb/testsuite/gdb.base/annota1.exp
@@ -440,7 +440,7 @@ if { [remote_file host exists core] } {
}
proc thread_test {} {
- global subdir srcdir testfile
+ global subdir srcdir testfile srcfile binfile
global gdb_prompt old_gdb_prompt
set srcfile watch_thread_num.c
set binfile [standard_output_file ${testfile}-watch_thread_num]
@@ -457,6 +457,9 @@ proc thread_test {} {
return
}
+ set linenum [gdb_get_line_number "all threads started"]
+ gdb_breakpoint "$linenum"
+
set gdb_prompt \
"\r\n\032\032pre-prompt\r\n$gdb_prompt \r\n\032\032prompt\r\n"
@@ -465,8 +468,8 @@ proc thread_test {} {
}
}
- gdb_test_multiple "next 2" "new thread" {
- -re ".*\032\032new-thread" {
+ gdb_test_multiple "continue" "new thread" {
+ -re "\032\032new-thread.*\r\n$gdb_prompt$" {
pass "new thread"
}
}