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

Side by Side Diff: gdb/testsuite/gdb.mi/mi2-syn-frame.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.mi/mi2-stepi.exp ('k') | gdb/testsuite/gdb.mi/mi2-until.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 2002-2003, 2005, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 2002-2003, 2005, 2007-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 MI output with synthetic frames on the stack (call dummies, 16 # Test MI output with synthetic frames on the stack (call dummies,
17 # signal handlers). 17 # signal handlers).
18 18
19 if [target_info exists gdb,nosignals] { 19 if [target_info exists gdb,nosignals] {
20 verbose "Skipping mi-syn-frame.exp because of nosignals." 20 verbose "Skipping mi-syn-frame.exp because of nosignals."
21 continue 21 continue
22 } 22 }
23 23
24 load_lib mi-support.exp 24 load_lib mi-support.exp
25 set MIFLAGS "-i=mi2" 25 set MIFLAGS "-i=mi2"
26 26
27 set testfile "mi-syn-frame" 27 standard_testfile mi-syn-frame.c
28 set srcfile ${testfile}.c 28
29 set binfile ${objdir}/${subdir}/${testfile} 29 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
30 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug additional_flags=-DFAKEARGV}] != "" } {
31 untested mi2-syn-frame.exp 30 untested mi2-syn-frame.exp
32 return -1 31 return -1
33 } 32 }
34 33
35 set my_mi_gdb_prompt "\\(gdb\\)\[ \]*\[\r\n\]*" 34 set my_mi_gdb_prompt "\\(gdb\\)\[ \]*\[\r\n\]*"
36 35
37 mi_gdb_exit 36 mi_gdb_exit
38 mi_gdb_start 37 mi_gdb_start
39 mi_run_to_main 38 mi_run_to_main
40 39
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 # Call bar() by hand, which should get an exception while running. 92 # Call bar() by hand, which should get an exception while running.
94 # 93 #
95 94
96 mi_gdb_test "410-data-evaluate-expression bar()" ".*410\\^error,msg=\"The progra m being debugged was signaled while in a function called from GDB.\\\\nGDB remai ns in the frame where the signal was received.\\\\nTo change this behavior use \ \\\\"set unwindonsignal on\\\\\".\\\\nEvaluation of the expression containing th e function\\\\n\\(bar\\) will be abandoned.\\\\nWhen the function is done execut ing, GDB will silently stop.\"" "call inferior function which raises exception" 95 mi_gdb_test "410-data-evaluate-expression bar()" ".*410\\^error,msg=\"The progra m being debugged was signaled while in a function called from GDB.\\\\nGDB remai ns in the frame where the signal was received.\\\\nTo change this behavior use \ \\\\"set unwindonsignal on\\\\\".\\\\nEvaluation of the expression containing th e function\\\\n\\(bar\\) will be abandoned.\\\\nWhen the function is done execut ing, GDB will silently stop.\"" "call inferior function which raises exception"
97 96
98 mi_gdb_test "411-stack-list-frames" "411\\^done,stack=\\\[frame=\{level=\"0\",ad dr=\"$hex\",func=\"bar\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax} ${srcfile}\",line=\"$decimal\"},frame=\{level=\"1\",addr=\"$hex\",func=\"<functi on called from gdb>\"\},frame=\{level=\"2\",addr=\"$hex\",func=\"main\",file=\". *mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"}.* \\\]" "backtrace from inferior function at exception" 97 mi_gdb_test "411-stack-list-frames" "411\\^done,stack=\\\[frame=\{level=\"0\",ad dr=\"$hex\",func=\"bar\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax} ${srcfile}\",line=\"$decimal\"},frame=\{level=\"1\",addr=\"$hex\",func=\"<functi on called from gdb>\"\},frame=\{level=\"2\",addr=\"$hex\",func=\"main\",file=\". *mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"}.* \\\]" "backtrace from inferior function at exception"
99 98
100 mi_gdb_exit 99 mi_gdb_exit
101 100
102 return 0 101 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.mi/mi2-stepi.exp ('k') | gdb/testsuite/gdb.mi/mi2-until.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698