aboutsummaryrefslogtreecommitdiff
path: root/gdb/symm-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symm-tdep.c')
-rw-r--r--gdb/symm-tdep.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/symm-tdep.c b/gdb/symm-tdep.c
index 55a75ad..e5161d5 100644
--- a/gdb/symm-tdep.c
+++ b/gdb/symm-tdep.c
@@ -444,15 +444,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 */