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

Side by Side Diff: gdb/testsuite/gdb.multi/multi-arch.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.multi/hello.c ('k') | gdb/testsuite/gdb.multi/multi-arch-exec.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2009-2013 Free Software Foundation, Inc.
2
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
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
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/>.
15
16 # Test multi-exec / multi-process features that work for all configurations,
17 # even ones that cannot run multiple processes simultaneously.
18
19 set testfile "multi-arch"
20
21 # The plain remote target can't do multiple inferiors.
22 if [target_info exists use_gdb_stub] {
23 return
24 }
25
26 # The 64-bit compile may succeed for i386-linux, but gdb won't be able
27 # to load the file.
28 if [istarget "i?86-*linux*"] {
29 return
30 }
31
32 # Can't use standard_testfile, we want executables with specialized
33 # names.
34 set exec1 "ma-hello"
35 set srcfile1 hello.c
36 set binfile1 [standard_output_file ${exec1}]
37
38 set exec2 "ma-hangout"
39 set srcfile2 hangout.c
40 set binfile2 [standard_output_file ${exec2}]
41
42 # Build two executables, one for each arch.
43
44 if [istarget "s390*-*-*"] {
45 set march1 "-m64"
46 set march2 "-m31"
47 } else {
48 set march1 "-m64"
49 set march2 "-m32"
50 }
51
52 if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" \
53 [list debug nowarnings additional_flags=${march1}]] } {
54 return -1
55 }
56
57 if { [prepare_for_testing ${testfile}.exp ${exec2} "${srcfile2}" \
58 [list debug nowarnings additional_flags=${march2}]] } {
59 return -1
60 }
61
62 # Start inferior 1
63
64 clean_restart ${exec1}
65 if ![runto_main] then {
66 fail "starting inferior 1"
67 }
68
69 # Add and start inferior 2
70
71 gdb_test "add-inferior" "Added inferior 2.*" "add empty inferior 2"
72 gdb_test "inferior 2" "Switching to inferior 2.*" "switch to inferior 2"
73 gdb_load ${binfile2}
74
75 if ![runto_main] then {
76 fail "starting inferior 2"
77 }
78
79 # Check we do have two inferiors loaded.
80
81 gdb_test "info inferiors" \
82 "Executable.*${exec2}.*${exec1}.*"
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.multi/hello.c ('k') | gdb/testsuite/gdb.multi/multi-arch-exec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698