2004-07-13 Andrew Cagney <cagney@gnu.org>

* gdb.base/ena-dis-br.exp: Update copyright.
	(break_at): New function.  Replace send_gdb with gdb_test,
	break_at, and gdb_test_multiple.  Replace XFAIL of "continue with
	ignore count, not stopped at bpt", with KFAIL.
This commit is contained in:
Andrew Cagney
2004-07-13 13:01:04 +00:00
parent e6b7d0f236
commit 9c7bb33213
2 changed files with 167 additions and 344 deletions

View File

@ -1,3 +1,10 @@
2004-07-13 Andrew Cagney <cagney@gnu.org>
* gdb.base/ena-dis-br.exp: Update copyright.
(break_at): New function. Replace send_gdb with gdb_test,
break_at, and gdb_test_multiple. Replace XFAIL of "continue with
ignore count, not stopped at bpt", with KFAIL.
2004-07-13 Corinna Vinschen <vinschen@redhat.com> 2004-07-13 Corinna Vinschen <vinschen@redhat.com>
* gdb.base/attach.exp: Remove cleanupfile handling. * gdb.base/attach.exp: Remove cleanupfile handling.

View File

@ -1,4 +1,7 @@
# Copyright 1997, 1998, 1999, 2003 Free Software Foundation, Inc. # This testcase is part of GDB, the GNU debugger.
# Copyright 1997, 1998, 1999, 2003, 2004 Free Software Foundation,
# Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -14,12 +17,9 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Please email any bugs, comments, and/or additions to this file to:
# bug-gdb@prep.ai.mit.edu
if $tracelevel then { if $tracelevel then {
strace $tracelevel strace $tracelevel
} }
global usestubs global usestubs
@ -66,374 +66,211 @@ if ![runto_main] then { fail "enable/disable break tests suppressed" }
# Verify that we can set a breakpoint (the location is irrelevant), # Verify that we can set a breakpoint (the location is irrelevant),
# then enable it (yes, it's already enabled by default), then hit it. # then enable it (yes, it's already enabled by default), then hit it.
#
send_gdb "break marker1\n" proc break_at { breakpoint where } {
gdb_expect { global gdb_prompt
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location15|$bp_location16).*$gdb_prompt $"\ global expect_out
{pass "break marker1"}
-re "$gdb_prompt $"\ set test "break $breakpoint"
{fail "break marker1"} set bp 0
timeout {fail "(timeout) break marker1"} gdb_test_multiple "$test" "$test" {
-re "Breakpoint (\[0-9\]*) at .*$where.*$gdb_prompt $" {
set bp $expect_out(1,string)
pass "$test"
}
}
return $bp
} }
send_gdb "enable $expect_out(1,string)\n" set bp [break_at "marker1" " line ($bp_location15|$bp_location16)"]
gdb_expect {
-re "$gdb_prompt $"\ gdb_test "enable $bp" "" "enable break marker1"
{pass "enable break marker1"}
timeout {fail "(timeout) enable break marker1"} gdb_test "info break $bp" \
"\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y.*" \
"info break marker1"
# See the comments in condbreak.exp for "run until breakpoint at
# marker1" for an explanation of the xfail below.
set test "continue to break marker1"
gdb_test_multiple "continue" "$test" {
-re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $" {
pass "$test"
}
-re "Breakpoint \[0-9\]*, $hex in marker1.*$gdb_prompt $" {
xfail "$test"
}
} }
send_gdb "info break $expect_out(1,string)\n" gdb_test "delete $bp" "" "delete break marker1"
gdb_expect {
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y.*$gdb_prompt $"\ # Verify that we can set a breakpoint to be self-disabling after the
{pass "info break marker1"} # first time it triggers.
-re "$gdb_prompt $"\ set bp [break_at "marker2" " line ($bp_location8|$bp_location9)"]
{fail "info break marker1"}
timeout {fail "(timeout) info break marker1"} gdb_test "enable once $bp" "" "enable once break marker2"
gdb_test "info break $bp" \
"\[0-9\]*\[ \t\]+breakpoint\[ \t\]+dis\[ \t\]+y.*" \
"info auto-disabled break marker2"
# See the comments in condbreak.exp for "run until breakpoint at
# marker1" for an explanation of the xfail below.
set test "continue to auto-disabled break marker2"
gdb_test_multiple "continue" "$test" {
-re "Breakpoint \[0-9\]*, marker2.*$gdb_prompt $" {
pass "$test"
}
-re "Breakpoint \[0-9\]*, $hex in marker2.*$gdb_prompt $" {
xfail "$test"
}
} }
# See the comments in condbreak.exp for "run until breakpoint at marker1" gdb_test "info break $bp" \
# for an explanation of the xfail below. "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+dis\[ \t\]+n.*" \
send_gdb "continue\n" "info auto-disabled break marker2"
gdb_expect {
-re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $"\
{pass "continue to break marker1"}
-re "Breakpoint \[0-9\]*, $hex in marker1.*$gdb_prompt $"\
{xfail "continue to break marker1"}
-re "$gdb_prompt $"\
{fail "continue to break marker1"}
timeout {fail "(timeout) continue to break marker1"}
}
send_gdb "delete $expect_out(1,string)\n"
gdb_expect {
-re "$gdb_prompt $"\
{pass "delete break marker1"}
timeout {fail "(timeout) delete break marker1"}
}
# Verify that we can set a breakpoint to be self-disabling after
# the first time it triggers.
#
send_gdb "break marker2\n"
gdb_expect {
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location8|$bp_location9).*$gdb_prompt $"\
{pass "break marker2"}
-re "$gdb_prompt $"\
{fail "break marker2"}
timeout {fail "(timeout) break marker2"}
}
send_gdb "enable once $expect_out(1,string)\n"
gdb_expect {
-re "$gdb_prompt $"\
{pass "enable once break marker2"}
timeout {fail "(timeout) enable once break marker2"}
}
send_gdb "info break $expect_out(1,string)\n"
gdb_expect {
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+dis\[ \t\]+y.*$gdb_prompt $"\
{pass "info auto-disabled break marker2"}
-re "$gdb_prompt $"\
{fail "info auto-disabled break marker2"}
timeout {fail "(timeout) info auto-disabled break marker2"}
}
# See the comments in condbreak.exp for "run until breakpoint at marker1"
# for an explanation of the xfail below.
send_gdb "continue\n"
gdb_expect {
-re "Breakpoint \[0-9\]*, marker2.*$gdb_prompt $"\
{pass "continue to auto-disabled break marker2"}
-re "Breakpoint \[0-9\]*, $hex in marker2.*$gdb_prompt $"\
{xfail "continue to auto-disabled break marker2"}
-re "$gdb_prompt $"\
{fail "continue to auto-disabled break marker2"}
timeout {fail "(timeout) continue to auto-disabled break marker2"}
}
send_gdb "info break $expect_out(1,string)\n"
gdb_expect {
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+dis\[ \t\]+n.*$gdb_prompt $"\
{pass "info auto-disabled break marker2"}
-re "$gdb_prompt $"\
{fail "info auto-disabled break marker2"}
timeout {fail "(timeout) info auto-disabled break marker2"}
}
# Verify that we don't stop at a disabled breakpoint. # Verify that we don't stop at a disabled breakpoint.
#
gdb_continue_to_end "no stop" gdb_continue_to_end "no stop"
rerun_to_main rerun_to_main
gdb_continue_to_end "no stop at auto-disabled break marker2" gdb_continue_to_end "no stop at auto-disabled break marker2"
# Verify that we can set a breakpoint to be self-deleting after # Verify that we can set a breakpoint to be self-deleting after the
# the first time it triggers. # first time it triggers.
# if ![runto_main] then {
if ![runto_main] then { fail "enable/disable break tests suppressed" } fail "enable/disable break tests suppressed"
send_gdb "break marker3\n"
gdb_expect {
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location17|$bp_location18).*$gdb_prompt $"\
{pass "break marker3"}
-re "$gdb_prompt $"\
{fail "break marker3"}
timeout {fail "(timeout) break marker3"}
} }
send_gdb "enable del $expect_out(1,string)\n" set bp [break_at "marker3" " line ($bp_location17|$bp_location18)"]
gdb_expect {
-re "$gdb_prompt $"\
{pass "enable del break marker3"}
timeout {fail "(timeout) enable del break marker3"}
}
send_gdb "info break $expect_out(1,string)\n" gdb_test "enable del $bp" "" "enable del break marker3"
gdb_expect {
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+del\[ \t\]+y.*$gdb_prompt $"\
{pass "info auto-deleted break marker2"}
-re "$gdb_prompt $"\
{fail "info auto-deleted break marker2"}
timeout {fail "(timeout) info auto-deleted break marker2"}
}
send_gdb "continue\n" gdb_test "info break $bp" \
gdb_expect { "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+del\[ \t\]+y.*" \
-re ".*marker3 .*:($bp_location17|$bp_location18).*$gdb_prompt $"\ "info auto-deleted break marker2"
{pass "continue to auto-deleted break marker3"}
-re "Breakpoint \[0-9\]*, marker3.*$gdb_prompt $"\
{fail "continue to auto-deleted break marker3"}
-re "$gdb_prompt $"\
{fail "continue to auto-deleted break marker3"}
timeout {fail "(timeout) continue to break marker3"}
}
send_gdb "info break $expect_out(1,string)\n" gdb_test "continue" \
gdb_expect { ".*marker3 .*:($bp_location17|$bp_location18).*" \
-re ".*No breakpoint or watchpoint number.*$gdb_prompt $"\ "continue to auto-deleted break marker3"
{pass "info auto-deleted break marker3"}
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\].*$gdb_prompt $"\ gdb_test "info break $bp" \
{fail "info auto-deleted break marker3"} ".*No breakpoint or watchpoint number.*" \
-re "$gdb_prompt $"\ "info auto-deleted break marker3"
{fail "info auto-deleted break marker3"}
timeout {fail "(timeout) info auto-deleted break marker3"}
}
# Verify that we can set a breakpoint and manually disable it (we've # Verify that we can set a breakpoint and manually disable it (we've
# already proven that disabled bp's don't trigger). # already proven that disabled bp's don't trigger).
#
send_gdb "break marker4\n"
gdb_expect {
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location14|$bp_location13).*$gdb_prompt $"\
{pass "break marker4"}
-re "$gdb_prompt $"\
{fail "break marker4"}
timeout {fail "(timeout) break marker4"}
}
send_gdb "disable $expect_out(1,string)\n" set bp [break_at "marker4" " line ($bp_location14|$bp_location13).*"]
gdb_expect {
-re "$gdb_prompt $"\
{pass "disable break marker4"}
timeout {fail "(timeout) disable break marker4"}
}
send_gdb "info break $expect_out(1,string)\n" gdb_test "disable $bp" "" "disable break marker4"
gdb_expect {
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+n.*$gdb_prompt $"\ gdb_test "info break $bp" \
{pass "info break marker4"} "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+n.*" \
-re "$gdb_prompt $"\ "info break marker4"
{fail "info break marker4"}
timeout {fail "(timeout) info break marker4"}
}
# Verify that we can set a breakpoint with an ignore count N, which # Verify that we can set a breakpoint with an ignore count N, which
# should cause the next N triggers of the bp to be ignored. (This is # should cause the next N triggers of the bp to be ignored. (This is
# a flavor of enablement/disablement, after all.) # a flavor of enablement/disablement, after all.)
#
if ![runto_main] then { fail "enable/disable break tests suppressed" }
send_gdb "break marker1\n" if ![runto_main] then {
gdb_expect { fail "enable/disable break tests suppressed"
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location15|$bp_location16).*$gdb_prompt $"\
{pass "break marker1"}
-re "$gdb_prompt $"\
{fail "break marker1"}
timeout {fail "(timeout) break marker1"}
} }
set bp [break_at "marker1" " line ($bp_location15|$bp_location16).*"]
# Verify that an ignore of a non-existent breakpoint is gracefully # Verify that an ignore of a non-existent breakpoint is gracefully
# handled. # handled.
#
send_gdb "ignore 999 2\n" gdb_test "ignore 999 2" \
gdb_expect { "No breakpoint number 999..*" \
-re "No breakpoint number 999..*$gdb_prompt $"\ "ignore non-existent break"
{pass "ignore non-existent break"}
-re "$gdb_prompt $"\
{fail "ignore non-existent break"}
timeout {fail "(timeout) ignore non-existent break"}
}
# Verify that a missing ignore count is gracefully handled. # Verify that a missing ignore count is gracefully handled.
#
send_gdb "ignore $expect_out(1,string) \n" gdb_test "ignore $bp" \
gdb_expect { "Second argument .specified ignore-count. is missing..*" \
-re "Second argument .specified ignore-count. is missing..*$gdb_prompt $"\ "ignore break with missing ignore count"
{pass "ignore break with missing ignore count"}
-re "$gdb_prompt $"\
{fail "ignore break with missing ignore count"}
timeout {fail "(timeout) ignore break with missing ignore count"}
}
# Verify that a negative or zero ignore count is handled gracefully # Verify that a negative or zero ignore count is handled gracefully
# (they both are treated the same). # (they both are treated the same).
#
send_gdb "ignore $expect_out(1,string) -1\n"
gdb_expect {
-re "Will stop next time breakpoint \[0-9\]* is reached..*$gdb_prompt $"\
{pass "ignore break marker1 -1"}
-re "$gdb_prompt $"\
{fail "ignore break marker1 -1"}
timeout {fail "(timeout) ignore break marker1 -1"}
}
send_gdb "ignore $expect_out(1,string) 0\n" gdb_test "ignore $bp -1" \
gdb_expect { "Will stop next time breakpoint \[0-9\]* is reached..*" \
-re "Will stop next time breakpoint \[0-9\]* is reached..*$gdb_prompt $"\ "ignore break marker1 -1"
{pass "ignore break marker1 0"}
-re "$gdb_prompt $"\
{fail "ignore break marker1 0"}
timeout {fail "(timeout) ignore break marker1 0"}
}
send_gdb "ignore $expect_out(1,string) 1\n" gdb_test "ignore $bp 0" \
gdb_expect { "Will stop next time breakpoint \[0-9\]* is reached..*" \
-re "Will ignore next crossing of breakpoint \[0-9\]*.*$gdb_prompt $"\ "ignore break marker1 0"
{pass "ignore break marker1"}
-re "$gdb_prompt $"\
{fail "ignore break marker1"}
timeout {fail "(timeout) ignore break marker1"}
}
send_gdb "info break $expect_out(1,string)\n" gdb_test "ignore $bp 1" \
gdb_expect { "Will ignore next crossing of breakpoint \[0-9\]*.*" \
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y.*ignore next 1 hits.*$gdb_prompt $"\ "ignore break marker1"
{pass "info ignored break marker1"}
-re "$gdb_prompt $"\ gdb_test "info break $bp" \
{fail "info ignored break marker1"} "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y.*ignore next 1 hits.*" \
timeout {fail "(timeout) info ignored break marker1"} "info ignored break marker1"
}
gdb_continue_to_end "no stop at ignored break marker1" gdb_continue_to_end "no stop at ignored break marker1"
rerun_to_main rerun_to_main
# See the comments in condbreak.exp for "run until breakpoint at marker1" # See the comments in condbreak.exp for "run until breakpoint at marker1"
# for an explanation of the xfail below. # for an explanation of the xfail below.
send_gdb "continue\n" set test "continue to break marker1, 2nd time"
gdb_expect { gdb_test_multiple "continue" "$test" {
-re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $"\ -re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $" {
{pass "continue to break marker1, 2nd time"} pass "continue to break marker1, 2nd time"
-re "Breakpoint \[0-9\]*, $hex in marker1.*$gdb_prompt $"\ }
{xfail "continue to break marker1, 2nd time"} -re "Breakpoint \[0-9\]*, $hex in marker1.*$gdb_prompt $" {
-re "$gdb_prompt $"\ xfail "continue to break marker1, 2nd time"
{fail "continue to break marker1, 2nd time"} }
timeout {fail "(timeout) continue to break marker1, 2nd time"}
} }
# Verify that we can specify both an ignore count and an auto-delete. # Verify that we can specify both an ignore count and an auto-delete.
#
if ![runto_main] then { fail "enable/disable break tests suppressed" }
send_gdb "break marker1\n" if ![runto_main] then {
gdb_expect { fail "enable/disable break tests suppressed"
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location15|$bp_location16).*$gdb_prompt $"\
{pass "break marker1"}
-re "$gdb_prompt $"\
{fail "break marker1"}
timeout {fail "(timeout) break marker1"}
} }
send_gdb "ignore $expect_out(1,string) 1\n" set bp [break_at marker1 " line ($bp_location15|$bp_location16).*"]
gdb_expect {
-re "Will ignore next crossing of breakpoint \[0-9\]*.*$gdb_prompt $"\
{pass "ignore break marker1"}
-re "$gdb_prompt $"\
{fail "ignore break marker1"}
timeout {fail "(timeout) ignore break marker1"}
}
send_gdb "enable del $expect_out(1,string)\n" gdb_test "ignore $bp 1" \
gdb_expect { "Will ignore next crossing of breakpoint \[0-9\]*.*" \
-re "$gdb_prompt $"\ "ignore break marker1"
{pass "enable del break marker1"}
timeout {fail "(timeout) enable del break marker1"}
}
send_gdb "info break $expect_out(1,string)\n" gdb_test "enable del $bp" "" "enable del break marker1"
gdb_expect {
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+del\[ \t\]+y.*ignore next 1 hits.*$gdb_prompt $"\ gdb_test "info break $bp" \
{pass "info break marker1"} "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+del\[ \t\]+y.*ignore next 1 hits.*" \
-re "$gdb_prompt $"\ "info break marker1"
{fail "info break marker1"}
timeout {fail "(timeout) info break marker2"}
}
gdb_continue_to_end "no stop at ignored & auto-deleted break marker1" gdb_continue_to_end "no stop at ignored & auto-deleted break marker1"
rerun_to_main rerun_to_main
send_gdb "continue\n" gdb_test "continue" \
gdb_expect { ".*marker1 .*:($bp_location15|$bp_location16).*" \
-re ".*marker1 .*:($bp_location15|$bp_location16).*$gdb_prompt $"\ "continue to ignored & auto-deleted break marker1"
{pass "continue to ignored & auto-deleted break marker1"}
-re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $"\
{fail "continue to ignored & auto-deleted break marker1"}
-re "$gdb_prompt $"\
{fail "continue to ignored & auto-deleted break marker1"}
timeout {fail "(timeout) continue to ignored & auto-deleted break marker1"}
}
# Verify that a disabled breakpoint's ignore count isn't updated when # Verify that a disabled breakpoint's ignore count isn't updated when
# the bp is encountered. # the bp is encountered.
#
if ![runto_main] then { fail "enable/disable break tests suppressed" }
send_gdb "break marker1\n" if ![runto_main] then {
gdb_expect { fail "enable/disable break tests suppressed"
-re "Breakpoint (\[0-9\]*) at .*, line ($bp_location15|$bp_location16).*$gdb_prompt $"\
{pass "break marker1"}
-re "$gdb_prompt $"\
{fail "break marker1"}
timeout {fail "(timeout) break marker1"}
} }
send_gdb "ignore $expect_out(1,string) 10\n" set bp [break_at marker1 " line ($bp_location15|$bp_location16)"]
gdb_expect {
-re "Will ignore next 10 crossings of breakpoint \[0-9\]*.*$gdb_prompt $"\
{pass "ignore break marker1"}
-re "$gdb_prompt $"\
{fail "ignore break marker1"}
timeout {fail "(timeout) ignore break marker1"}
}
send_gdb "disable $expect_out(1,string)\n" gdb_test "ignore $bp 10" \
gdb_expect { "Will ignore next 10 crossings of breakpoint \[0-9\]*.*" \
-re "$gdb_prompt $"\ "ignore break marker1"
{pass "disable break marker1"}
timeout {fail "(timeout) disable break marker1"} gdb_test "disable $bp" "" "disable break marker1"
}
gdb_continue_to_end "no stop at ignored & disabled break marker1" gdb_continue_to_end "no stop at ignored & disabled break marker1"
rerun_to_main rerun_to_main
send_gdb "info break $expect_out(1,string)\n" gdb_test "info break $bp" \
gdb_expect { "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+n.*ignore next 10 hits.*" \
-re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+n.*ignore next 10 hits.*$gdb_prompt $"\ "info ignored & disabled break marker1"
{pass "info ignored & disabled break marker1"}
-re "$gdb_prompt $"\
{fail "info ignored & disabled break marker1"}
timeout {fail "(timeout) info ignored & disabled break marker1"}
}
# Verify that GDB correctly handles the "continue" command with an argument, # Verify that GDB correctly handles the "continue" command with an argument,
# which is an ignore count to set on the currently stopped-at breakpoint. # which is an ignore count to set on the currently stopped-at breakpoint.
@ -442,46 +279,25 @@ gdb_expect {
# #
if ![runto_main] then { fail "enable/disable break tests suppressed" } if ![runto_main] then { fail "enable/disable break tests suppressed" }
send_gdb "break $bp_location1\n" gdb_test "break $bp_location1" \
gdb_expect { "Breakpoint \[0-9\]*.*, line $bp_location1.*" \
-re "Breakpoint \[0-9\]*.*, line $bp_location1.*$gdb_prompt $"\ "prepare to continue with ignore count"
{pass "prepare to continue with ignore count"}
-re "$gdb_prompt $"\
{fail "prepare to continue with ignore count"}
timeout {fail "(timeout) prepare to continue with ignore count"}
}
send_gdb "continue 2\n"
gdb_expect {
-re "Will ignore next crossing of breakpoint \[0-9\]*. Continuing..*$gdb_prompt $"\
{pass "continue with ignore count"}
-re "$gdb_prompt $"\
{fail "continue with ignore count"}
timeout {fail "(timeout) continue with ignore count"}
}
send_gdb "next\n" gdb_test "continue 2" \
gdb_expect { "Will ignore next crossing of breakpoint \[0-9\]*. Continuing..*" \
-re ".*$bp_location11\[ \t\]*marker1.*$gdb_prompt $"\ "continue with ignore count"
{pass "step after continue with ignore count"}
-re "$gdb_prompt $"\
{fail "step after continue with ignore count"}
timeout {fail "(timeout) step after continue with ignore count"}
}
# ??rehrauer: Huh. This appears to be an actual bug. (No big gdb_test "next" ".*$bp_location11\[ \t\]*marker1.*" \
# surprise, since this feature hasn't been tested...) Looks like step after continue with ignore count"
# GDB is currently trying to set the ignore count of bp # -1!
# set test "continue with ignore count, not stopped at bpt"
setup_xfail hppa_*_* gdb_test_multiple "continue 2" "$test" {
send_gdb "continue 2\n" -re "Not stopped at any breakpoint; argument ignored.*$gdb_prompt $" {
gdb_expect { pass "$test"
-re "Not stopped at any breakpoint; argument ignored..*$gdb_prompt $"\ }
{pass "continue with ignore count, not stopped at bpt"} -re "No breakpoint number -1.*$gdb_prompt $" {
-re "No breakpoint number -1.*$gdb_prompt $"\ kfail gdb/1689 "$test"
{xfail "(DTS'd) continue with ignore count, not stopped at bpt"} }
-re "$gdb_prompt $"\
{fail "continue with ignore count, not stopped at bpt"}
timeout {fail "(timeout) step after continue with ignore count, not stopped at bpt"}
} }
gdb_exit gdb_exit