mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
[gdb/testsuite] Fix info-var.exp for debug info from other files
On openSUSE Leap 15.1, I get: ... FAIL: gdb.base/info-var.exp: info variables FAIL: gdb.base/info-var.exp: info variables -n ... because the info variables command prints info also for init.c: ... File init.c:^M 24: const int _IO_stdin_used;^M ... while the regexps in the test-case only expect info for info-var-f1.c and info-var-f2.c. Fix this by extending the regexps. Tested on x86_64-linux, both openSUSE Leap 15.1 and Fedora 30. gdb/testsuite/ChangeLog: 2019-08-28 Tom de Vries <tdevries@suse.de> * gdb.base/info-var.exp: Allow info variables to print info for files other than info-var-f1.c and info-var-f2.c.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2019-08-28 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
* gdb.base/info-var.exp: Allow info variables to print info for files
|
||||||
|
other than info-var-f1.c and info-var-f2.c.
|
||||||
|
|
||||||
2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* gdb.fortran/info-types.exp: Add module.
|
* gdb.fortran/info-types.exp: Add module.
|
||||||
|
@ -37,7 +37,10 @@ gdb_test "info variables" \
|
|||||||
"File .*${srcfile2}:" \
|
"File .*${srcfile2}:" \
|
||||||
"18:\[ \t\]+int global_var;" \
|
"18:\[ \t\]+int global_var;" \
|
||||||
"20:\[ \t\]+static int f2_var;" \
|
"20:\[ \t\]+static int f2_var;" \
|
||||||
"" \
|
"(" \
|
||||||
|
"File .*:(" \
|
||||||
|
"$decimal:.*" \
|
||||||
|
")+)*" \
|
||||||
"Non-debugging symbols:" \
|
"Non-debugging symbols:" \
|
||||||
".*"]
|
".*"]
|
||||||
|
|
||||||
@ -50,7 +53,10 @@ gdb_test "info variables -n" \
|
|||||||
"" \
|
"" \
|
||||||
"File .*${srcfile2}:" \
|
"File .*${srcfile2}:" \
|
||||||
"18:\[ \t\]+int global_var;" \
|
"18:\[ \t\]+int global_var;" \
|
||||||
"20:\[ \t\]+static int f2_var;" ]
|
"20:\[ \t\]+static int f2_var;(" \
|
||||||
|
"" \
|
||||||
|
"File .*:(" \
|
||||||
|
"$decimal:.*)+)*"]
|
||||||
|
|
||||||
gdb_test "info variables -n global" \
|
gdb_test "info variables -n global" \
|
||||||
[multi_line \
|
[multi_line \
|
||||||
|
Reference in New Issue
Block a user