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 caviumnetworks dot com>
- Cc: "Maciej W. Rozycki" <macro at codesourcery dot com>, "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 23 Aug 2012 10:27:17 -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>
>>>>> "Andrew" == Andrew Pinski <andrew.pinski@caviumnetworks.com> writes:
I know this is in already, but at least for future reference (or now if
you don't mind changing it)...
Andrew> +set testfile "mips-octeon-bbit"
Andrew> +set srcfile ${testfile}.c
Andrew> +set binfile ${objdir}/${subdir}/${testfile}
Use standard_testfile.c
Andrew> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
Andrew> + {debug nowarnings}] != "" } {
Andrew> + fail "compilation"
Andrew> + return
Andrew> +}
Andrew> +
Andrew> +pass "compilation"
Andrew> +
Andrew> +gdb_exit
Andrew> +gdb_start
Andrew> +gdb_reinitialize_dir $srcdir/$subdir
Andrew> +gdb_load ${binfile}
All this can be replaced with prepare_for_testing.
If you want, I can write a patch, if you would test it.
thanks,
Tom