Mon Dec 21 12:40:10 1992 Ian Lance Taylor (ian@cygnus.com)
[binutils-gdb.git] / gdb / symm-tdep.c
index d7d5def3e1ff362cb3df365a0374eb382fd16718..64ab2927081b6e94aac47e0d66a2995d49280536 100644 (file)
@@ -19,9 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* many 387-specific items of use taken from i386-dep.c */
 
-#include <stdio.h>
 #include "defs.h"
-#include "param.h"
 #include "frame.h"
 #include "inferior.h"
 #include "symtab.h"
@@ -445,15 +443,12 @@ symmetry_extract_return_value(type, regbuf, valbuf)
     double     d; 
     int        l[2]; 
   } xd; 
-  int i;
+  struct minimal_symbol *msymbol;
   float f;
 
   if (TYPE_CODE_FLT == TYPE_CODE(type)) { 
-    for (i = 0; i < misc_function_count; i++) {
-      if (!strcmp(misc_function_vector[i].name, "1167_flt"))
-       break;
-    }
-    if (i < misc_function_count) {
+    msymbol = lookup_minimal_symbol ("1167_flt", (struct objfile *) NULL);
+    if (msymbol != NULL) {
       /* found "1167_flt" means 1167, %fp2-%fp3 */ 
       /* float & double; 19= %fp2, 20= %fp3 */
       /* no single precision on 1167 */