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

Side by Side Diff: gdb/testsuite/gdb.python/py-finish-breakpoint.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 (C) 2011-2012 Free Software Foundation, Inc. 1 # Copyright (C) 2011-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 the mechanism 16 # This file is part of the GDB testsuite. It tests the mechanism
17 # exposing values to Python. 17 # exposing values to Python.
18 18
19 if $tracelevel then {
20 strace $tracelevel
21 }
22
23 if {[skip_shlib_tests]} { 19 if {[skip_shlib_tests]} {
24 untested py-finish-breakpoint.exp 20 untested py-finish-breakpoint.exp
25 return 0 21 return 0
26 } 22 }
27 23
28 load_lib gdb-python.exp 24 load_lib gdb-python.exp
29 25
30 set libfile "py-events-shlib" 26 set libfile "py-events-shlib"
31 set libsrc $srcdir/$subdir/$libfile.c 27 set libsrc $srcdir/$subdir/$libfile.c
32 set lib_sl $objdir/$subdir/$libfile-nodebug.so 28 set lib_sl [standard_output_file $libfile-nodebug.so]
33 set lib_opts "" 29 set lib_opts ""
34 30
35 set testfile "py-finish-breakpoint" 31 standard_testfile
36 set srcfile ${testfile}.c
37 set binfile ${objdir}/${subdir}/${testfile}
38 set exec_opts [list debug shlib=$lib_sl] 32 set exec_opts [list debug shlib=$lib_sl]
39 33
40 if [get_compiler_info ${binfile}] { 34 if [get_compiler_info] {
41 return -1 35 return -1
42 } 36 }
43 37
44 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != "" 38 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
45 || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} { 39 || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
46 untested "Could not compile either $libsrc or $srcdir/$subdir/$srcfile." 40 untested "Could not compile either $libsrc or $srcdir/$subdir/$srcfile."
47 return -1 41 return -1
48 } 42 }
49 43
50 # Start with a fresh gdb. 44 # Start with a fresh gdb.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 # 251 #
258 252
259 if ![runto "test_exec_exit"] then { 253 if ![runto "test_exec_exit"] then {
260 fail "Cannot run to test_exec_exit." 254 fail "Cannot run to test_exec_exit."
261 return 0 255 return 0
262 } 256 }
263 257
264 gdb_test "python SimpleFinishBreakpoint(gdb.newest_frame())" "SimpleFinishBreakp oint init" "set FinishBP after the exec" 258 gdb_test "python SimpleFinishBreakpoint(gdb.newest_frame())" "SimpleFinishBreakp oint init" "set FinishBP after the exec"
265 gdb_test "catch exec" "Catchpoint.*\(exec\).*" "catch exec" 259 gdb_test "catch exec" "Catchpoint.*\(exec\).*" "catch exec"
266 gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exec" 260 gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exec"
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.python/py-explore-cc.exp ('k') | gdb/testsuite/gdb.python/py-finish-breakpoint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698