OSDN Git Service

Merge branch 'binutils' into tmp
[pf3gnuchains/pf3gnuchains4x.git] / gdb / testsuite / gdb.base / float.exp
index e9be286..448102b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2003, 2007-2012 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 # This file is part of the gdb testsuite.
 
-if $tracelevel {
-    strace $tracelevel
-}
-
 #
 # Test floating-point related functionality.
 #
 
-set prms_id 0
-set bug_id 0
 
-if { [prepare_for_testing float.exp float run.c] } {
+if { [prepare_for_testing float.exp float float.c] } {
     return -1
 }
 
@@ -44,9 +38,7 @@ if ![runto_main] then {
 
 if { [istarget "alpha*-*-*"] } then {
     gdb_test "info float" "f0.*" "info float"
-} elseif { [istarget "arm*-*-*"] || \
-       [istarget "xscale*-*-*"] || \
-       [istarget "strongarm*-*-*"] } then {
+} elseif { [istarget "arm*-*-*"] } then {
     gdb_test_multiple "info float" "info float" {
        -re "Software FPU type.*mask:.*flags:.*$gdb_prompt $" {
            pass "info float (FPA)"
@@ -103,3 +95,6 @@ if { [istarget "alpha*-*-*"] } then {
 } else {
     gdb_test "info float" "No floating.point info available for this processor." "info float (unknown target)"
 }
+
+gdb_test "step"
+gdb_test "finish" "Value returned is .* = (inf|nan).*"