aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-16 21:20:14 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-16 21:20:14 +0000
commitbb3912236d517f154ab93377fe746d88149bfa88 (patch)
tree844245266fad0d68b06fb8e8786323b0d0aefbd5 /gdb
parent275f2e57c2a0194f9606ca966506ceb5ce0677b5 (diff)
downloadgdb-bb3912236d517f154ab93377fe746d88149bfa88.zip
gdb-bb3912236d517f154ab93377fe746d88149bfa88.tar.gz
gdb-bb3912236d517f154ab93377fe746d88149bfa88.tar.bz2
gdb/testsuite/
* gdb.arch/thumb2-it.exp (test_it_break): Handle hardware single-stepping.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.arch/thumb2-it.exp8
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4f0e069..cbe4e77 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+ * gdb.arch/thumb2-it.exp (test_it_break): Handle hardware
+ single-stepping.
+
+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
* gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
if arguments are not supported.
diff --git a/gdb/testsuite/gdb.arch/thumb2-it.exp b/gdb/testsuite/gdb.arch/thumb2-it.exp
index 5144ac1..8c29fe8 100644
--- a/gdb/testsuite/gdb.arch/thumb2-it.exp
+++ b/gdb/testsuite/gdb.arch/thumb2-it.exp
@@ -126,6 +126,8 @@ proc test_it_block { func } {
}
proc test_it_break { ndx } {
+ global software_step
+
set line [gdb_get_line_number "@ Break ${ndx}"]
if { ! [gdb_breakpoint "${line}"] } {
@@ -133,7 +135,11 @@ proc test_it_break { ndx } {
return
}
- gdb_continue_to_breakpoint "test ${ndx}" ".*@ Location ${ndx}.*"
+ if { $software_step } {
+ gdb_continue_to_breakpoint "test ${ndx}" ".*@ Location ${ndx}.*"
+ } else {
+ gdb_continue_to_breakpoint "test ${ndx}" ".*@ Break ${ndx}.*"
+ }
}
# If we are using software single-stepping in GDB, then GDB will not