aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-12-27 21:29:41 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-12-27 21:29:41 +0000
commit3bc96cfbb226922c2eedc9df93a6d18bf532db7f (patch)
treeaf451a829aadbd2f41daa6dd46bb7234b7032c85 /gdb/testsuite/gdb.python/py-finish-breakpoint.exp
parentNew function ada-lang.c:should_use_wild_match... (diff)
downloadbinutils-gdb-3bc96cfbb226922c2eedc9df93a6d18bf532db7f.tar.gz
binutils-gdb-3bc96cfbb226922c2eedc9df93a6d18bf532db7f.tar.bz2
binutils-gdb-3bc96cfbb226922c2eedc9df93a6d18bf532db7f.zip
gdb/testsuite/
* gdb.python/py-finish-breakpoint.c (test_exec_exit): Change the parameter to self_exec, adjust the function. (main): Check for argv[1] "exit". Use argv[0] for test_exec_exit. * gdb.python/py-finish-breakpoint.exp (set var self_exec = 0): New test. (set var do_exit = 0): Remove test. (newline at end of file): Add one.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-finish-breakpoint.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-finish-breakpoint.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
index c7a42a241f3..fbdc5db00e0 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
@@ -247,6 +247,7 @@ if ![runto "test_exec_exit"] then {
return 0
}
+gdb_test_no_output "set var self_exec = 0" "switch to exit() test"
gdb_test "python SimpleFinishBreakpoint(gdb.newest_frame())" "SimpleFinishBreakpoint init" "set FinishBP after the exit()"
gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exit"
@@ -259,7 +260,6 @@ if ![runto "test_exec_exit"] then {
return 0
}
-gdb_test_no_output "set var do_exit = 0" "switch to execve() test"
gdb_test "python SimpleFinishBreakpoint(gdb.newest_frame())" "SimpleFinishBreakpoint init" "set FinishBP after the exec"
gdb_test "catch exec" "Catchpoint.*\(exec\).*" "catch exec"
-gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exec" \ No newline at end of file
+gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exec"