This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH/MIPS] Add support Octeon's bbit instructions
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Pinski <andrew dot pinski at cavium dot com>
- Cc: Andrew Pinski <andrew dot pinski at caviumnetworks dot com>, "Maciej W. Rozycki" <macro at codesourcery dot com>, "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 24 Aug 2012 07:56:51 -0600
- Subject: Re: [PATCH/MIPS] Add support Octeon's bbit instructions
- References: <CA+=Sn1mwHXVa7_-ktwgQVNq2ZyX8bQEjhj95ZbyWpTbVGPQixg@mail.gmail.com> <alpine.DEB.1.10.1204191322460.19835@tp.orcam.me.uk> <5A31B467E5043B4C9104F558E9137E4E324F3E7025@VA3DIAXVS3E1.RED001.local> <alpine.DEB.1.10.1204242012360.19835@tp.orcam.me.uk> <CA+=Sn1kktQHNzbyLAEKDk+=Dau_V8nEkmW9_pUPMtWyNAjwpxg@mail.gmail.com> <87d32hpo9m.fsf@fleche.redhat.com> <1345754613.22460.1.camel@apinskidesktop>
Andrew> Yes please write the patch and I will test it.
Give this a try.
Also, I think the copyright info in this file is wrong.
It says copyright Cavium Networks -- but presumably it was assigned.
And it uses GPL v2, not v3.
Tom
diff --git a/gdb/testsuite/gdb.arch/mips-octeon-bbit.exp b/gdb/testsuite/gdb.arch/mips-octeon-bbit.exp
index de6db0f..096c56f 100644
--- a/gdb/testsuite/gdb.arch/mips-octeon-bbit.exp
+++ b/gdb/testsuite/gdb.arch/mips-octeon-bbit.exp
@@ -77,22 +77,13 @@ proc test_bbit { name taken } {
}
}
-set testfile "mips-octeon-bbit"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .c
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
- {debug nowarnings}] != "" } {
- fail "compilation"
- return
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
+ {debug nowarnings}] } {
+ return -1
}
-pass "compilation"
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
# Native needs run.
runto_main