mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
[gdb/testsuite] Fix gdb.cp/cplusfuncs.exp with check-read1
When running check-read1, we run into: ... FAIL: gdb.cp/cplusfuncs.exp: info function for "operator=(" (timeout) ... Fix this by using using gdb_test_lines in info_func_regexp. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2021-06-10 Tom de Vries <tdevries@suse.de> * gdb.cp/cplusfuncs.exp (info_func_regexp): Use gdb_test_lines.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2021-06-10 Tom de Vries <tdevries@suse.de>
|
||||
|
||||
* gdb.cp/cplusfuncs.exp (info_func_regexp): Use gdb_test_lines.
|
||||
|
||||
2021-06-09 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* README (Example): Update read1 example.
|
||||
|
@ -287,13 +287,16 @@ proc probe_demangler { } {
|
||||
#
|
||||
|
||||
proc info_func_regexp { name demangled } {
|
||||
global gdb_prompt
|
||||
global srcfile decimal
|
||||
|
||||
regsub {\\\(void\\\)} $demangled {\(\)} demangled
|
||||
|
||||
gdb_test "info function $name" \
|
||||
"File .*:\t(class|)${demangled}.*" \
|
||||
"info function for \"$name\""
|
||||
set file_re "File .*[string_to_regexp $srcfile]:"
|
||||
|
||||
gdb_test_lines "info function $name" "info function for \"$name\"" \
|
||||
[list \
|
||||
"$file_re" \
|
||||
"$decimal:\t(class|)${demangled}.*"]
|
||||
}
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user