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: Andrew Pinski <andrew dot pinski at cavium dot com>
- To: Tom Tromey <tromey at redhat 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: Thu, 23 Aug 2012 13:43:33 -0700
- 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>
On Thu, 2012-08-23 at 10:27 -0600, Tom Tromey wrote:
> >>>>> "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)...
Thanks, I will remember this for next time.
>
> 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.
Yes please write the patch and I will test it.
Thanks,
Andrew Pinski