+2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
+
+ * gdb.base/range-stepping.exp (gdb_range_stepping_enabled):
+ Move it to ...
+ * lib/range-stepping-support.exp (gdb_range_stepping_enabled):
+ ... here.
+ * gdb.trace/range-stepping.exp: Check that the target supports
+ range stepping.
+
2015-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.arch/i386-biarch-core.exp: Fix comment typo.
return -1
}
-# Check whether range stepping is supported by the target.
-
-proc gdb_range_stepping_enabled { } {
- global gdb_prompt
-
- set command "set range-stepping on"
- set message "probe range-stepping support"
- gdb_test_multiple $command $message {
- -re "Range stepping is not supported.*\r\n$gdb_prompt $" {
- pass $message
- return 0
- }
- -re "^$command\r\n$gdb_prompt $" {
- pass $message
- return 1
- }
- }
-
- return 0
-}
-
if ![gdb_range_stepping_enabled] {
unsupported "range stepping not supported by the target"
return -1
return -1
}
+if ![gdb_range_stepping_enabled] {
+ unsupported "range stepping not supported by the target"
+ return -1
+}
+
# Check that range stepping works well with tracepoints.
proc range_stepping_with_tracepoint { type } {
gdb_test_no_output "set debug remote 0" ""
return $ret
}
+
+# Check whether range stepping is supported by the target.
+
+proc gdb_range_stepping_enabled { } {
+ global gdb_prompt
+
+ set command "set range-stepping on"
+ set message "probe range-stepping support"
+ gdb_test_multiple $command $message {
+ -re "Range stepping is not supported.*\r\n$gdb_prompt $" {
+ pass $message
+ return 0
+ }
+ -re "^$command\r\n$gdb_prompt $" {
+ pass $message
+ return 1
+ }
+ }
+
+ return 0
+}