This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch, testsuite] restrict gdb.arch/ppc64-symtab-cordic.exp to ppc64 targets
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Date: Wed, 29 Jul 2015 16:46:02 -0600
- Subject: [patch, testsuite] restrict gdb.arch/ppc64-symtab-cordic.exp to ppc64 targets
- Authentication-results: sourceware.org; auth=none
I've found that it doesn't do anything useful to try loading a ppc64 .ko
file when testing GDB on ARM, Nios II, etc. I copied the target test
logic from the other gdb.arch/ppc64-*.exp testcase -- is this OK to
check in?
-Sandra
2015-07-29 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.arch/ppc64-symtab-cordic.exp: Restrict to ppc64 targets.
diff --git a/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp b/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
index d9a3f13..fa82510 100644
--- a/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
@@ -13,6 +13,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+if {![istarget "powerpc*"] || ![is_lp64_target]} {
+ verbose "Skipping powerpc64 separate debug file symtab test."
+ return
+}
+
standard_testfile
set kobz2file ${srcdir}/${subdir}/cordic.ko.bz2