Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: gdb/testsuite/gdb.base/call-signal-resume.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/call-sc.exp ('k') | gdb/testsuite/gdb.base/call-signals.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.base/call-signal-resume.exp
diff --git a/gdb/testsuite/gdb.base/call-signal-resume.exp b/gdb/testsuite/gdb.base/call-signal-resume.exp
index 9c67941bfb3268ba7df4f73f94e29992c4c8e132..2baa3f67992d8af8832e7d4f3aae957483bf8115 100644
--- a/gdb/testsuite/gdb.base/call-signal-resume.exp
+++ b/gdb/testsuite/gdb.base/call-signal-resume.exp
@@ -20,10 +20,6 @@
# 2) Inferior is stopped at a signal. Upon resumption it should continue
# with that signal, regardless of whatever the hand-called function did.
-if $tracelevel then {
- strace $tracelevel
-}
-
if [target_info exists gdb,noinferiorio] {
verbose "Skipping call-signal-resume.exp because of no fileio capabilities."
continue
@@ -103,7 +99,19 @@ if { "$frame_number" == "" } {
# Pop the dummy frame.
gdb_test "frame $frame_number" ".*"
gdb_test_no_output "set confirm off"
-gdb_test_no_output "return"
+gdb_test "return" ""
+
+# Verify there are no remains of the dummy frame.
+gdb_test_no_output "maintenance print dummy-frames"
+set test "maintenance info breakpoints"
+gdb_test_multiple $test $test {
+ -re " call dummy .*\r\n$gdb_prompt $" {
+ fail $test
+ }
+ -re "\r\n$gdb_prompt $" {
+ pass $test
+ }
+}
# Resume execution, the program should continue without any signal.
@@ -136,7 +144,7 @@ if { "$frame_number" == "" } {
# Pop the dummy frame.
gdb_test "frame $frame_number" ".*"
gdb_test_no_output "set confirm off"
-gdb_test_no_output "return"
+gdb_test "return" ""
# Continue again, this time we should get to the signal handler.
« no previous file with comments | « gdb/testsuite/gdb.base/call-sc.exp ('k') | gdb/testsuite/gdb.base/call-signals.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698