+2014-10-17 Yao Qi <yao@codesourcery.com>
+
+ * gdb.base/commands.exp (gdbvar_complex_if_while_test): Don't
+ check 'target_info exists noargs'.
+ (test_command_prompt_position): Likewise.
+ (progvar_simple_if_test): Don't check 'target_info exists noargs'.
+ Remove "set args".
+ (progvar_simple_while_test): Likewise.
+ (progvar_complex_if_while_test): Likewise.
+ (if_while_breakpoint_command_test): Likewise.
+ (infrun_breakpoint_command_test): Likewise.
+ (breakpoint_command_test): Likewise.
+ (watchpoint_command_test): Likewise.
+ (bp_deleted_in_command_test): Likewise.
+ (temporary_breakpoint_commands): Likewise.
+
2014-10-16 Yao Qi <yao@codesourcery.com>
* gdb.base/remotetimeout.exp: Remove noargs checking.
proc progvar_simple_if_test {} {
global gdb_prompt
- if [target_info exists noargs] {
- verbose "Skipping progvar_simple_if_test because of noargs."
- return
- }
-
if { ![runto factorial] } then { gdb_suppress_tests; }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
proc progvar_simple_while_test {} {
global gdb_prompt
- if [target_info exists noargs] {
- verbose "Skipping progvar_simple_while_test because of noargs."
- return
- }
-
- gdb_test_no_output "set args 5" "set args in progvar_simple_while_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
proc progvar_complex_if_while_test {} {
global gdb_prompt
- if [target_info exists noargs] {
- verbose "Skipping progvar_simple_if_while_test because of noargs."
- return
- }
-
- gdb_test_no_output "set args 4" \
- "set args in progvar_complex_if_while_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
}
proc if_while_breakpoint_command_test {} {
- if [target_info exists noargs] {
- verbose "Skipping if_while_breakpoint_command_test because of noargs."
- return
- }
- gdb_test_no_output "set args 5" \
- "set args in if_while_breakpoint_command_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
# subsection "Breakpoint command lists".
proc infrun_breakpoint_command_test {} {
- if [target_info exists noargs] {
- verbose "Skipping infrun_breakpoint_command_test because of noargs."
- return
- }
- gdb_test_no_output "set args 6" \
- "set args in infrun_breakpoint_command_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
}
proc breakpoint_command_test {} {
- if [target_info exists noargs] {
- verbose "Skipping breakpoint_command_test because of noargs."
- return
- }
- gdb_test_no_output "set args 6" "set args in breakpoint_command_test"
if { ![runto factorial] } then { gdb_suppress_tests; }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
}
proc watchpoint_command_test {} {
- global noargs
global gdb_prompt
- if [target_info exists noargs] {
- verbose "Skipping watchpoint_command_test because of noargs."
- return
- }
-
# Disable hardware watchpoints if necessary.
if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
- gdb_test_no_output "set args 6" "set args in watchpoint_command_test"
if { ![runto factorial] } then { return }
delete_breakpoints
proc test_command_prompt_position {} {
global gdb_prompt
- if [target_info exists noargs] {
- verbose "Skipping test_command_prompt_position because of noargs."
- return
- }
-
if { ![runto factorial] } then { gdb_suppress_tests; }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
proc bp_deleted_in_command_test {} {
global gdb_prompt
-
- if [target_info exists noargs] {
- verbose "Skipping bp_deleted_in_command_test because of noargs."
- return
- }
- gdb_test_no_output "set args 1" \
- "set args in bp_deleted_in_command_test"
delete_breakpoints
# Create a breakpoint, and associate a command-list to it, with
proc temporary_breakpoint_commands {} {
global gdb_prompt
-
- if [target_info exists noargs] {
- verbose "Skipping temporary_breakpoint_commands because of noargs."
- return
- }
- gdb_test_no_output "set args 1" \
- "set args in temporary_breakpoint_commands"
delete_breakpoints
# Create a temporary breakpoint, and associate a commands list to it.