mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
gdb/testsuite/
Do not false FAIL with old GCCs. * gdb.base/watchpoint.exp (self-delete local watch) <$no_hw>: XFAIL for GCC < 4.5 in $no_hw mode.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Do not false FAIL with old GCCs.
|
||||||
|
* gdb.base/watchpoint.exp (self-delete local watch) <$no_hw>: XFAIL for
|
||||||
|
GCC < 4.5 in $no_hw mode.
|
||||||
|
|
||||||
2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* gdb.base/default.exp (cd): Accept new directory with no arguments.
|
* gdb.base/default.exp (cd): Accept new directory with no arguments.
|
||||||
|
@ -459,7 +459,27 @@ proc test_complex_watchpoint {} {
|
|||||||
#
|
#
|
||||||
gdb_test "watch local_a" ".*\[Ww\]atchpoint \[0-9\]*: local_a" "set local watch"
|
gdb_test "watch local_a" ".*\[Ww\]atchpoint \[0-9\]*: local_a" "set local watch"
|
||||||
gdb_test "cont" "\[Ww\]atchpoint.*local_a.*" "trigger local watch"
|
gdb_test "cont" "\[Ww\]atchpoint.*local_a.*" "trigger local watch"
|
||||||
gdb_test "cont" "Continuing.*\[Ww\]atchpoint .* deleted because the program has left the block in.*which its expression is valid.*" "self-delete local watch"
|
|
||||||
|
set test "self-delete local watch"
|
||||||
|
gdb_test_multiple "cont" $test {
|
||||||
|
-re "Continuing.*\[Ww\]atchpoint .* deleted because the program has left the block in.*which its expression is valid.*\r\n$gdb_prompt $" {
|
||||||
|
pass $test
|
||||||
|
}
|
||||||
|
-re "can't compute CFA for this frame.*\r\n$gdb_prompt $" {
|
||||||
|
global compiler_info no_hw
|
||||||
|
|
||||||
|
# GCC < 4.5.0 does not get LOCATIONS_VALID set by dwarf2read.c.
|
||||||
|
# Therefore epilogue unwinder gets applied which is
|
||||||
|
# incompatible with dwarf2_frame_cfa.
|
||||||
|
verbose -log "compiler_info: $compiler_info"
|
||||||
|
if {$no_hw && ([test_compiler_info {gcc-[0-3]-*}]
|
||||||
|
|| [test_compiler_info {gcc-4-[0-4]-*}])} {
|
||||||
|
xfail "$test (old GCC has broken watchpoints in epilogues)"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
fail $test
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gdb_continue_to_breakpoint "func2 breakpoint here"
|
gdb_continue_to_breakpoint "func2 breakpoint here"
|
||||||
# We should be in "func2" again now. Test a watch of an
|
# We should be in "func2" again now. Test a watch of an
|
||||||
|
Reference in New Issue
Block a user