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

Side by Side Diff: gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.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 unified diff | Download patch
OLDNEW
1 # Copyright 2011-2012 Free Software Foundation, Inc. 1 # Copyright (C) 2012 Free Software Foundation, Inc.
2 # 2 #
3 # This program is free software; you can redistribute it and/or modify 3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by 4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or 5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version. 6 # (at your option) any later version.
7 # 7 #
8 # This program is distributed in the hope that it will be useful, 8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
16 # Test GCC PR debug/48827 workaround in GDB. 16 if ![supports_reverse] {
17 return
18 }
17 19
18 set testfile "amd64-prologue-xmm"
19 set srcfile ${testfile}.s
20 set csrcfile ${testfile}.c
21 set binfile ${objdir}/${subdir}/${testfile}.x
22 set opts {} 20 set opts {}
21 standard_testfile .S
23 22
24 if [info exists COMPILE] { 23 if [info exists COMPILE] {
25 # make check RUNTESTFLAGS='gdb.arch/amd64-prologue-xmm.exp COMPILE=1' 24 # make check RUNTESTFLAGS="gdb.reverse/amd64-tailcall-reverse.exp COMPILE=1"
26 set srcfile ${csrcfile} 25 standard_testfile
27 lappend opts debug optimize=-O0 26 lappend opts debug optimize=-O2
28 } elseif { ![istarget x86_64-*-* ] || ![is_lp64_target] } { 27 } elseif { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
29 verbose "Skipping amd64-prologue-xmm test." 28 verbose "Skipping ${testfile}."
30 return 0 29 return
31 } 30 }
32 31
33 if {[prepare_for_testing ${testfile}.exp ${testfile} $srcfile $opts]} { 32 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $opts] } {
34 return -1 33 return -1
35 } 34 }
36 35
37 if ![runto_main] { 36 if ![runto_main] {
38 return -1 37 return -1
39 } 38 }
40 39
41 gdb_breakpoint "func" 40 if [supports_process_record] {
42 gdb_breakpoint "marker" 41 gdb_test_no_output "record"
42 }
43 43
44 gdb_continue_to_breakpoint "func" 44 gdb_test "next" {f \(\);} "next to f"
45 gdb_test "next" {v = 3;} "next to v = 3"
45 46
46 gdb_test "p fail" " = 0" "stopped at func" 47 # FAIL was:
48 # 29 g ();
49 gdb_test "reverse-next" {f \(\);}
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.c ('k') | gdb/testsuite/gdb.reverse/break-precsave.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698