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

Side by Side Diff: gdb/testsuite/gdb.reverse/step-precsave.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
« no previous file with comments | « gdb/testsuite/gdb.reverse/solib-reverse.exp ('k') | gdb/testsuite/gdb.reverse/step-reverse.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008-2012 Free Software Foundation, Inc. 1 # Copyright 2008-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 # This file is part of the GDB testsuite. It tests reverse stepping. 16 # This file is part of the GDB testsuite. It tests reverse stepping.
17 # Lots of code borrowed from "step-test.exp". 17 # Lots of code borrowed from "step-test.exp".
18 18
19 # 19 #
20 # Test step and next with a reloaded process record file. 20 # Test step and next with a reloaded process record file.
21 # 21 #
22 22
23 # This test suitable only for process record-replay 23 # This test suitable only for process record-replay
24 if ![supports_process_record] { 24 if ![supports_process_record] {
25 return 25 return
26 } 26 }
27 27
28 set testfile "step-reverse" 28 standard_testfile step-reverse.c
29 set srcfile ${testfile}.c 29 set precsave [standard_output_file step.precsave]
30 30
31 if { [prepare_for_testing $testfile.exp $testfile $srcfile] } { 31 if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
32 return -1 32 return -1
33 } 33 }
34 34
35 runto main 35 runto main
36 36
37 if [supports_process_record] { 37 if [supports_process_record] {
38 # Activate process record/replay 38 # Activate process record/replay
39 gdb_test_no_output "record" "Turn on process record" 39 gdb_test_no_output "record" "Turn on process record"
40 } 40 }
41 41
42 set end_of_main [gdb_get_line_number "end of main" ] 42 set end_of_main [gdb_get_line_number "end of main" ]
43 gdb_test "break $end_of_main" \ 43 gdb_test "break $end_of_main" \
44 "Breakpoint $decimal at .*/$srcfile, line $end_of_main\." \ 44 "Breakpoint $decimal at .*/$srcfile, line $end_of_main\." \
45 "BP at end of main" 45 "BP at end of main"
46 46
47 gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main" 47 gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
48 48
49 gdb_test "record save step.precsave" \ 49 gdb_test "record save $precsave" \
50 "Saved core file step.precsave with execution log\." \ 50 "Saved core file $precsave with execution log\." \
51 "save process recfile" 51 "save process recfile"
52 52
53 gdb_test "kill" "" "Kill process, prepare to debug log file" \ 53 gdb_test "kill" "" "Kill process, prepare to debug log file" \
54 "Kill the program being debugged\\? \\(y or n\\) " "y" 54 "Kill the program being debugged\\? \\(y or n\\) " "y"
55 55
56 gdb_test "record restore step.precsave" \ 56 gdb_test "record restore $precsave" \
57 "Program terminated with signal .*" \ 57 "Program terminated with signal .*" \
58 "reload core file" 58 "reload core file"
59 59
60 # plain vanilla step/next (no count) 60 # plain vanilla step/next (no count)
61 61
62 gdb_test "next" ".*NEXT TEST 1.*" "next test 1" 62 gdb_test "next" ".*NEXT TEST 1.*" "next test 1"
63 gdb_test "step" ".*STEP TEST 1.*" "step test 1" 63 gdb_test "step" ".*STEP TEST 1.*" "step test 1"
64 64
65 # step/next with count 65 # step/next with count
66 66
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 gdb_test "step" ".*STEP TEST 1.*" "reverse step test 2" 262 gdb_test "step" ".*STEP TEST 1.*" "reverse step test 2"
263 gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2" 263 gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2"
264 264
265 265
266 266
267 # Finish test by running forward to the end. 267 # Finish test by running forward to the end.
268 # FIXME return to this later... 268 # FIXME return to this later...
269 # gdb_test_no_output "set exec-dir forward" "set forward execution" 269 # gdb_test_no_output "set exec-dir forward" "set forward execution"
270 # gdb_continue_to_end "step-reverse.exp" 270 # gdb_continue_to_end "step-reverse.exp"
271 271
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.reverse/solib-reverse.exp ('k') | gdb/testsuite/gdb.reverse/step-reverse.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698