mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
[gdb/testsuite] Fix internal buffer full error in gdb.fortran/module.exp
With test-case gdb.fortran/module.exp, I run into: ... PASS: gdb.fortran/module.exp: fully qualified name of DW_TAG_constant ERROR: internal buffer is full. UNRESOLVED: gdb.fortran/module.exp: info variables -n ... Fix this by using exp_continue while matching the output of "info variable -n". Tested on x86_64-linux, using make targets check and check-read1. gdb/testsuite/ChangeLog: 2020-03-12 Tom de Vries <tdevries@suse.de> * gdb.fortran/module.exp: Use exp_continue during matching of output of "info variable -n".
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-03-12 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
* gdb.fortran/module.exp: Use exp_continue during matching of output
|
||||||
|
of "info variable -n".
|
||||||
|
|
||||||
2020-03-12 Tom de Vries <tdevries@suse.de>
|
2020-03-12 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
* gdb.dwarf2/dw2-ranges-base.exp: Limit "maint info line-table" to
|
* gdb.dwarf2/dw2-ranges-base.exp: Limit "maint info line-table" to
|
||||||
|
@ -37,11 +37,8 @@ if ![runto MAIN__] then {
|
|||||||
set int_type [fortran_int4]
|
set int_type [fortran_int4]
|
||||||
|
|
||||||
# Test 'info variables' can find module variables.
|
# Test 'info variables' can find module variables.
|
||||||
gdb_test "info variables -n" \
|
set mod_re \
|
||||||
[multi_line \
|
[multi_line \
|
||||||
"All defined variables:" \
|
|
||||||
"" \
|
|
||||||
"File .*$srcfile:" \
|
|
||||||
"18:\[ \t\]+${int_type} mod1::var_const;" \
|
"18:\[ \t\]+${int_type} mod1::var_const;" \
|
||||||
"17:\[ \t\]+${int_type} mod1::var_i;" \
|
"17:\[ \t\]+${int_type} mod1::var_i;" \
|
||||||
"23:\[ \t\]+${int_type} mod2::var_i;" \
|
"23:\[ \t\]+${int_type} mod2::var_i;" \
|
||||||
@ -53,11 +50,33 @@ gdb_test "info variables -n" \
|
|||||||
"33:\[ \t\]+${int_type} modmany::var_c;" \
|
"33:\[ \t\]+${int_type} modmany::var_c;" \
|
||||||
"33:\[ \t\]+${int_type} modmany::var_i;" \
|
"33:\[ \t\]+${int_type} modmany::var_i;" \
|
||||||
"37:\[ \t\]+${int_type} moduse::var_x;" \
|
"37:\[ \t\]+${int_type} moduse::var_x;" \
|
||||||
"37:\[ \t\]+${int_type} moduse::var_y;(" \
|
"37:\[ \t\]+${int_type} moduse::var_y;"]
|
||||||
"" \
|
|
||||||
"File .*:(" \
|
|
||||||
"$decimal:.*)+)*"]
|
|
||||||
|
|
||||||
|
set state 0
|
||||||
|
gdb_test_multiple "info variables -n" "" {
|
||||||
|
-re "\r\nAll defined variables:" {
|
||||||
|
if { $state == 0 } { set state 1 }
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
-re "\r\n\r\nFile .*[string_to_regexp $srcfile]:" {
|
||||||
|
if { $state == 1 } { set state 2 }
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
-re $mod_re {
|
||||||
|
if { $state == 2 } { set state 3 }
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
-re "\r\n\r\nFile \[^\r\n\]*:" {
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
|
-re -wrap "" {
|
||||||
|
if { $state == 3} {
|
||||||
|
pass $gdb_test_name
|
||||||
|
} else {
|
||||||
|
fail $gdb_test_name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Do not use simple single-letter names as GDB would pick up for expectedly
|
# Do not use simple single-letter names as GDB would pick up for expectedly
|
||||||
# nonexisting symbols some static variables from system libraries debuginfos.
|
# nonexisting symbols some static variables from system libraries debuginfos.
|
||||||
|
Reference in New Issue
Block a user