This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]