This is the mail archive of the gdb-patches@sources.redhat.com 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: Add sh target to float.exp


Proofread but not tested, looks okay to me.

You might want to start using gdb_test_multiple.
gdb.base/gdb1250.exp is a short example.

    gdb_test_multiple "info float" "info float" {
      -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" {
          # SH may or may not have an FPU
	  pass "info float (with FPU)"
      }
      -re "No floating.point info available for this processor.*$gdb_prompt $" {
  	  pass "info float (without FPU)"
      }
    }

Or leave gdb_test_multiple for another day, whatever.

Michael C


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