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

Unified Diff: gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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.arch/amd64-tailcall-noret.c ('k') | gdb/testsuite/gdb.arch/amd64-tailcall-ret.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
similarity index 71%
copy from gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
copy to gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
index 8460893fa3d337e5fe726e0e3194d735a7e290c3..cd15596573b9c4a62c33369755010f7774107a0a 100644
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2012 Free Software Foundation, Inc.
+# Copyright (C) 2012-2013 Free Software Foundation, Inc.
#
# 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
@@ -17,7 +17,7 @@ set opts {}
standard_testfile .S
if [info exists COMPILE] {
- # make check RUNTESTFLAGS="gdb.arch/amd64-tailcall-ret.exp COMPILE=1"
+ # make check RUNTESTFLAGS="gdb.arch/amd64-tailcall-noret.exp COMPILE=1"
standard_testfile
lappend opts debug optimize=-O2
} elseif { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
@@ -29,16 +29,8 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $opts] } {
return -1
}
-if ![runto_main] {
+if ![runto noret] {
return -1
}
-gdb_breakpoint "g"
-gdb_continue_to_breakpoint "g" ".* v = 2;"
-
-gdb_test "return" { f \(\); /\* second \*/} "return" \
- {Make g return now\? \(y or n\) } "y"
-
-gdb_continue_to_breakpoint "g" ".* v = 2;"
-
-gdb_test "finish" " v = 3;"
+gdb_test "bt" "#0 +noret \\(x=1\\) at \[^\r\n\]*\r\n#1 +0x\[0-9a-f\]+ in mayret \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +0x\[0-9a-f\]+ in tailcall \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#3 +0x\[0-9a-f\]+ in main \\(\\) at .*"
« no previous file with comments | « gdb/testsuite/gdb.arch/amd64-tailcall-noret.c ('k') | gdb/testsuite/gdb.arch/amd64-tailcall-ret.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698