mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-13 11:20:55 +08:00
Further robustify gdb.base/bp-permanent.exp.
2015-08-03 Sandra Loosemore <sandra@codesourcery.com> gdb/testsuite/ * gdb.base/bp-permanent.exp: Report test as unsupported if the target cannot stop at the permanent breakpoint.
This commit is contained in:
gdb/testsuite
@ -1,3 +1,8 @@
|
|||||||
|
2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.base/bp-permanent.exp: Report test as unsupported if
|
||||||
|
the target cannot stop at the permanent breakpoint.
|
||||||
|
|
||||||
2015-08-03 Doug Evans <dje@google.com>
|
2015-08-03 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* gdb.perf/single-step.exp (SINGLE_STEP_COUNT): Change to 1000 from
|
* gdb.perf/single-step.exp (SINGLE_STEP_COUNT): Change to 1000 from
|
||||||
|
@ -123,8 +123,21 @@ proc test {always_inserted sw_watchpoint} {
|
|||||||
with_test_prefix "basics" {
|
with_test_prefix "basics" {
|
||||||
# Run to the permanent breakpoint, just to make sure we've inserted it
|
# Run to the permanent breakpoint, just to make sure we've inserted it
|
||||||
# correctly.
|
# correctly.
|
||||||
gdb_test "continue" "Program received signal SIGTRAP.*" \
|
# If the target fails to stop, the remainder of the test will not work
|
||||||
"permanent breakpoint causes random signal"
|
# so just return. This can happen on some simulator targets where
|
||||||
|
# the running program doesn't see breakpoints that are visible to
|
||||||
|
# the execution engine, or where writes to the .text section are
|
||||||
|
# quietly ignored.
|
||||||
|
set test "permanent breakpoint causes random signal"
|
||||||
|
gdb_test_multiple "continue" $test {
|
||||||
|
-re "exited normally.*$gdb_prompt $" {
|
||||||
|
unsupported "failed to stop at permanent breakpoint"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
-re "Program received signal SIGTRAP.*$gdb_prompt $" {
|
||||||
|
pass $test
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Now set a breakpoint on top, thus creating a permanent breakpoint.
|
# Now set a breakpoint on top, thus creating a permanent breakpoint.
|
||||||
gdb_breakpoint "$line_bp"
|
gdb_breakpoint "$line_bp"
|
||||||
|
Reference in New Issue
Block a user