mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
mi-sym-info.exp: Increase timeout for 114-symbol-info-functions
Loading libc.so's symbols increased the amount of time needed for 114-symbol-info-function to fetch symbols, causing a timeout during my testing. I enclosed the entire block with a "with_timeout_factor 4", which fixes the problem for me. (Using 2 also fixed it for me, but it might not be enough when running this test on slower machines.) gdb/testsuite/ChangeLog: * gdb.mi/mi-sym-info.exp (114-symbol-info-function test): Increase timeout.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2021-06-11 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* gdb.mi/mi-sym-info.exp (114-symbol-info-function test): Increase
|
||||||
|
timeout.
|
||||||
|
|
||||||
2021-06-11 Kevin Buettner <kevinb@redhat.com>
|
2021-06-11 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* gdb.base/print-symbol-loading.exp (proc test_load_shlib):
|
* gdb.base/print-symbol-loading.exp (proc test_load_shlib):
|
||||||
|
@ -123,33 +123,35 @@ gdb_test_multiple $cmd $testname -prompt "${mi_gdb_prompt}$" {
|
|||||||
# (from the symbol table). There's often so much output output from
|
# (from the symbol table). There's often so much output output from
|
||||||
# this command that we overflow expect's buffers, avoid this by
|
# this command that we overflow expect's buffers, avoid this by
|
||||||
# fetching the output piece by piece.
|
# fetching the output piece by piece.
|
||||||
set testname "List all functions"
|
with_timeout_factor 4 {
|
||||||
set cmd "114-symbol-info-functions --include-nondebug"
|
set testname "List all functions"
|
||||||
set state 0
|
set cmd "114-symbol-info-functions --include-nondebug"
|
||||||
gdb_test_multiple $cmd ${testname} -prompt "${mi_gdb_prompt}$" {
|
set state 0
|
||||||
-re "114\\^done,symbols=\{" {
|
gdb_test_multiple $cmd ${testname} -prompt "${mi_gdb_prompt}$" {
|
||||||
if { $state == 0 } { set state 1 }
|
-re "114\\^done,symbols=\{" {
|
||||||
exp_continue
|
if { $state == 0 } { set state 1 }
|
||||||
}
|
exp_continue
|
||||||
-re "debug=\\\[${symtab_re}" {
|
}
|
||||||
if { $state == 1 } { set state 2 }
|
-re "debug=\\\[${symtab_re}" {
|
||||||
exp_continue
|
if { $state == 1 } { set state 2 }
|
||||||
}
|
exp_continue
|
||||||
-re ",${symtab_re}" {
|
}
|
||||||
exp_continue
|
-re ",${symtab_re}" {
|
||||||
}
|
exp_continue
|
||||||
-re "\\\],nondebug=\\\[" {
|
}
|
||||||
if { $state == 2 } { set state 3 }
|
-re "\\\],nondebug=\\\[" {
|
||||||
exp_continue
|
if { $state == 2 } { set state 3 }
|
||||||
}
|
exp_continue
|
||||||
-re "\{address=${qstr},name=${qstr}\}," {
|
}
|
||||||
exp_continue
|
-re "\{address=${qstr},name=${qstr}\}," {
|
||||||
}
|
exp_continue
|
||||||
-re "\{address=${qstr},name=${qstr}\}\\\]\}\r\n${mi_gdb_prompt}$" {
|
}
|
||||||
if { $state == 3 } {
|
-re "\{address=${qstr},name=${qstr}\}\\\]\}\r\n${mi_gdb_prompt}$" {
|
||||||
pass $gdb_test_name
|
if { $state == 3 } {
|
||||||
} else {
|
pass $gdb_test_name
|
||||||
fail $gdb_test_name
|
} else {
|
||||||
|
fail $gdb_test_name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user