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

Side by Side Diff: gdb/testsuite/gdb.base/siginfo-obj.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.base/siginfo-addr.exp ('k') | gdb/testsuite/gdb.base/signals.c » ('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 2004, 2007-2008, 2010-2012 Free Software Foundation, Inc. 1 # Copyright 2004, 2007-2008, 2010-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
(...skipping 15 matching lines...) Expand all
26 continue 26 continue
27 } 27 }
28 28
29 if { ! [istarget "i?86-*-linux*"] 29 if { ! [istarget "i?86-*-linux*"]
30 && ! [istarget "x86_64-*-linux*"] 30 && ! [istarget "x86_64-*-linux*"]
31 && ! [istarget "arm*-*-linux*"] } { 31 && ! [istarget "arm*-*-linux*"] } {
32 verbose "Skipping siginfo-obj.exp because of lack of support." 32 verbose "Skipping siginfo-obj.exp because of lack of support."
33 return 33 return
34 } 34 }
35 35
36 if $tracelevel then {
37 strace $tracelevel
38 }
39
40 36
41 set testfile siginfo-obj 37 set testfile siginfo-obj
42 set srcfile ${testfile}.c 38 set srcfile ${testfile}.c
43 set binfile ${objdir}/${subdir}/${testfile} 39 set binfile ${objdir}/${subdir}/${testfile}
44 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } { 40 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
45 untested "Couldn't compile ${srcfile}.c" 41 untested "Couldn't compile ${srcfile}.c"
46 return -1 42 return -1
47 } 43 }
48 44
49 # get things started 45 # get things started
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 gdb_test "p \$_siginfo.si_code = 999" " = 999" 116 gdb_test "p \$_siginfo.si_code = 999" " = 999"
121 gdb_test "p \$_siginfo.si_signo = 11" " = 11" 117 gdb_test "p \$_siginfo.si_signo = 11" " = 11"
122 118
123 gdb_test "break $bp_location" 119 gdb_test "break $bp_location"
124 gdb_test "continue" ".* handler .*" "continue to handler" 120 gdb_test "continue" ".* handler .*" "continue to handler"
125 121
126 gdb_test "p ssi_addr" " = \\(void \\*\\) 0x666" 122 gdb_test "p ssi_addr" " = \\(void \\*\\) 0x666"
127 gdb_test "p ssi_errno" " = 666" 123 gdb_test "p ssi_errno" " = 666"
128 gdb_test "p ssi_code" " = 999" 124 gdb_test "p ssi_code" " = 999"
129 gdb_test "p ssi_signo" " = 11" 125 gdb_test "p ssi_signo" " = 11"
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/siginfo-addr.exp ('k') | gdb/testsuite/gdb.base/signals.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698