+2020-03-19 Tom de Vries <tdevries@suse.de>
+
+ * gdb.opt/inline-locals.exp: Add kfail PR number. Make kfail matching
+ more precise.
+
2020-03-18 Tom de Vries <tdevries@suse.de>
* gdb.dwarf2/break-inline-psymtab-2.c: New test.
"backtrace from bar 2"
gdb_test "up" "#1 .*func1 .* at .*" "up from bar 2"
gdb_test "info frame" ".*inlined into frame.*" "func1 inlined 2"
- setup_kfail "gdb/xyz" *-*-*
- gdb_test "info locals" "array = {.*}" "info locals above bar 2"
+ set pass_re "array = {$decimal, \[^\r\n\]*}"
+ set kfail_re [multi_line $pass_re \
+ "array = {<optimized out> <repeats 64 times>}"]
+ gdb_test_multiple "info locals" "info locals above bar 2" {
+ -re -wrap $pass_re {
+ pass $gdb_test_name
+ }
+ -re -wrap $kfail_re {
+ kfail gdb/25695 $gdb_test_name
+ }
+ }
set msg "info args above bar 2"
gdb_test_multiple "info args" $msg {
"backtrace from bar 3"
gdb_test "up" "#1 .*func1 .* at .*" "up from bar 3"
gdb_test "info frame" ".*inlined into frame.*" "func1 inlined 3"
- setup_kfail "gdb/xyz" *-*-*
- gdb_test "info locals" "array = {.*}" "info locals above bar 3"
+ set pass_re "array = {$decimal, \[^\r\n\]*}"
+ set kfail_re [multi_line $pass_re \
+ "array = {<optimized out> <repeats 64 times>}"]
+ gdb_test_multiple "info locals" "info locals above bar 2" {
+ -re -wrap $pass_re {
+ pass $gdb_test_name
+ }
+ -re -wrap $kfail_re {
+ kfail gdb/25695 $gdb_test_name
+ }
+ }
set msg "info args above bar 3"
gdb_test_multiple "info args" $msg {