[rfc] add ppc testcase to test fpscr

Daniel Jacobowitz drow@false.org
Wed Sep 3 21:01:00 GMT 2008


On Wed, Sep 03, 2008 at 05:12:25PM -0300, Thiago Jung Bauermann wrote:
> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug additional_flags=-O0}] != "" } {

No need for additional_flags here.

> +# Run the program, when the prompt comes back it will be for the invalid
> +# operation breakpoint.
> +gdb_run_cmd

You've got to wait for the prompt explicitly.  If you ever leave expect
in a state where two prompts should be arriving, it won't know which
is which; if it sees them separately, you can get out of sync and all
tests will fail with unknown output.  That's one advantage of using
runto_main followed by an explicit continue.

Looks otherwise OK to me.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list