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

Side by Side Diff: gdb/testsuite/gdb.base/solib-overlap.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/solib-nodir.exp ('k') | gdb/testsuite/gdb.base/solib-symbol.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 2009-2012 Free Software Foundation, Inc. 1 # Copyright 2009-2012 Free Software Foundation, Inc.
2 # This program is free software; you can redistribute it and/or modify 2 # This program is free software; you can redistribute it and/or modify
3 # it under the terms of the GNU General Public License as published by 3 # it under the terms of the GNU General Public License as published by
4 # the Free Software Foundation; either version 3 of the License, or 4 # the Free Software Foundation; either version 3 of the License, or
5 # (at your option) any later version. 5 # (at your option) any later version.
6 # 6 #
7 # This program is distributed in the hope that it will be useful, 7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 # GNU General Public License for more details. 10 # GNU General Public License for more details.
(...skipping 18 matching lines...) Expand all
29 29
30 if [skip_shlib_tests] { 30 if [skip_shlib_tests] {
31 return 0 31 return 0
32 } 32 }
33 33
34 # Are we on a target board? It is required for attaching to a process. 34 # Are we on a target board? It is required for attaching to a process.
35 if [is_remote target] { 35 if [is_remote target] {
36 return 0 36 return 0
37 } 37 }
38 38
39 if [get_compiler_info binfile-unused] { 39 if [get_compiler_info] {
40 return -1; 40 return -1;
41 } 41 }
42 42
43 # Library file. 43 # Library file.
44 set libname "solib-overlap-lib" 44 set libname "solib-overlap-lib"
45 set srcfile_lib ${srcdir}/${subdir}/${libname}.c 45 set srcfile_lib ${srcdir}/${subdir}/${libname}.c
46 # Binary file. 46 # Binary file.
47 set testfile "solib-overlap-main" 47 set testfile "solib-overlap-main"
48 set srcfile ${srcdir}/${subdir}/${testfile}.c 48 set srcfile ${srcdir}/${subdir}/${testfile}.c
49 49
50 # Base addresses for `prelink -r' which should be compatible with both -m32 and 50 # Base addresses for `prelink -r' which should be compatible with both -m32 and
51 # -m64 targets. If it clashes with system prelinked libraries it would give 51 # -m64 targets. If it clashes with system prelinked libraries it would give
52 # false PASS. 52 # false PASS.
53 # Prelink first lib1 at 0x40000000 and lib2 at 0x41000000. 53 # Prelink first lib1 at 0x40000000 and lib2 at 0x41000000.
54 # During second pass try lib1 at 0x50000000 and lib2 at 0x51000000. 54 # During second pass try lib1 at 0x50000000 and lib2 at 0x51000000.
55 foreach prelink_lib1 {0x40000000 0x50000000} { 55 foreach prelink_lib1 {0x40000000 0x50000000} { with_test_prefix "$prelink_lib1" {
56 set prelink_lib2 [format "0x%x" [expr $prelink_lib1 + 0x01000000]] 56 set prelink_lib2 [format "0x%x" [expr $prelink_lib1 + 0x01000000]]
57 57
58 set old_prefix $pf_prefix
59 lappend pf_prefix "$prelink_lib1:"
60
61 # Library file. 58 # Library file.
62 set binfile_lib1 ${objdir}/${subdir}/${libname}1-${prelink_lib1}.so 59 set binfile_lib1 ${objdir}/${subdir}/${libname}1-${prelink_lib1}.so
63 set binfile_lib1_test_msg OBJDIR/${subdir}/${libname}1-${prelink_lib1}.so 60 set binfile_lib1_test_msg OBJDIR/${subdir}/${libname}1-${prelink_lib1}.so
64 set binfile_lib2 ${objdir}/${subdir}/${libname}2-${prelink_lib1}.so 61 set binfile_lib2 ${objdir}/${subdir}/${libname}2-${prelink_lib1}.so
65 set binfile_lib2_test_msg OBJDIR/${subdir}/${libname}2-${prelink_lib1}.so 62 set binfile_lib2_test_msg OBJDIR/${subdir}/${libname}2-${prelink_lib1}.so
66 set lib_flags {debug} 63 set lib_flags {debug}
67 # Binary file. 64 # Binary file.
68 set binfile_base ${testfile}-${prelink_lib1} 65 set binfile_base ${testfile}-${prelink_lib1}
69 set binfile ${objdir}/${subdir}/${binfile_base} 66 set binfile ${objdir}/${subdir}/${binfile_base}
70 set binfile_test_msg OBJDIR/${subdir}/${binfile_base} 67 set binfile_test_msg OBJDIR/${subdir}/${binfile_base}
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 127
131 # Detach the process. 128 # Detach the process.
132 129
133 gdb_test "detach" "Detaching from program: .*$escapedbinfile, process $testp id" 130 gdb_test "detach" "Detaching from program: .*$escapedbinfile, process $testp id"
134 131
135 # Wait a bit for gdb to finish detaching 132 # Wait a bit for gdb to finish detaching
136 133
137 sleep 5 134 sleep 5
138 135
139 remote_exec build "kill -9 ${testpid}" 136 remote_exec build "kill -9 ${testpid}"
140 137 }}
141 set pf_prefix $old_prefix
142 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/solib-nodir.exp ('k') | gdb/testsuite/gdb.base/solib-symbol.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698