Re: [PATCH/MIPS] Add support Octeon's bbit instructions

Tom Tromey
2012-08-24T13:57:09Z

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