* gdb.threads/manythreads.exp: Prevent expect buffer overflow
in info threads output.
This commit is contained in:
parent
0e7f50da78
commit
4339e69e64
@ -1,3 +1,8 @@
|
|||||||
|
2007-06-12 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.threads/manythreads.exp: Prevent expect buffer overflow
|
||||||
|
in info threads output.
|
||||||
|
|
||||||
2007-06-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
2007-06-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||||
Markus Deuling <deuling@de.ibm.com>
|
Markus Deuling <deuling@de.ibm.com>
|
||||||
|
|
||||||
|
@ -81,7 +81,25 @@ gdb_test_multiple "" "stop threads 1" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "info threads" ".*1 Thread .*"
|
set cmd "info threads"
|
||||||
|
set ok 0
|
||||||
|
gdb_test_multiple $cmd $cmd {
|
||||||
|
-re " 1 Thread " {
|
||||||
|
set ok 1
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
-re ".*\r\n" {
|
||||||
|
# Eat this line and continue, to prevent the buffer overflowing.
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
-re "$gdb_prompt $" {
|
||||||
|
if { $ok } {
|
||||||
|
pass $cmd
|
||||||
|
} else {
|
||||||
|
fail $cmd
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
set message "second continue"
|
set message "second continue"
|
||||||
gdb_test_multiple "continue" "second continue" {
|
gdb_test_multiple "continue" "second continue" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user