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

Side by Side Diff: gdb/testsuite/gdb.base/siginfo-addr.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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.c ('k') | gdb/testsuite/gdb.base/siginfo-infcall.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-2012 Free Software Foundation, Inc. 1 # Copyright 2004-2013 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.
(...skipping 12 matching lines...) Expand all
24 if [target_info exists gdb,nosignals] { 24 if [target_info exists gdb,nosignals] {
25 verbose "Skipping siginfo-addr.exp because of nosignals." 25 verbose "Skipping siginfo-addr.exp because of nosignals."
26 continue 26 continue
27 } 27 }
28 28
29 if [gdb_skip_stdio_test "siginfo-addr.exp"] { 29 if [gdb_skip_stdio_test "siginfo-addr.exp"] {
30 continue 30 continue
31 } 31 }
32 32
33 33
34 set testfile siginfo-addr 34 standard_testfile
35 set srcfile ${testfile}.c 35 if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
36 set binfile ${objdir}/${subdir}/${testfile}
37 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
38 untested "Couldn't compile ${srcfile}.c" 36 untested "Couldn't compile ${srcfile}.c"
39 return -1 37 return -1
40 } 38 }
41 39
42 # get things started
43 gdb_exit
44 gdb_start
45 gdb_reinitialize_dir $srcdir/$subdir
46 gdb_load ${binfile}
47
48 gdb_test "display/i \$pc" 40 gdb_test "display/i \$pc"
49 41
50 # Advance to main 42 # Advance to main
51 if { ![runto_main] } then { 43 if { ![runto_main] } then {
52 gdb_suppress_tests; 44 gdb_suppress_tests
53 } 45 }
54 46
55 # Run to the signal. 47 # Run to the signal.
56 gdb_test "continue" ".*Program received signal SIGSEGV.*" "continue to signal" 48 gdb_test "continue" ".*Program received signal SIGSEGV.*" "continue to signal"
57 49
58 # Check for correct si_addr. 50 # Check for correct si_addr.
59 set test "program exit" 51 set test "program exit"
60 gdb_test_multiple "continue" "${test}" { 52 gdb_test_multiple "continue" "${test}" {
61 -re "Correct si_addr" { 53 -re "Correct si_addr" {
62 pass "si_addr value" 54 pass "si_addr value"
63 } 55 }
64 -re "Got si_addr" { 56 -re "Got si_addr" {
65 fail "si_addr value" 57 fail "si_addr value"
66 } 58 }
67 } 59 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/siginfo-addr.c ('k') | gdb/testsuite/gdb.base/siginfo-infcall.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698