Stop assuming no-debug-info functions return int
[deliverable/binutils-gdb.git] / gdb / f-typeprint.c
index 7dbe093a7fcafd12353189207f1ded02f20989ff..2a858aab171da5c65c5cbd3dbe15da337a3a64ae 100644 (file)
@@ -304,9 +304,14 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show,
       break;
 
     case TYPE_CODE_ARRAY:
-    case TYPE_CODE_FUNC:
       f_type_print_base (TYPE_TARGET_TYPE (type), stream, show, level);
       break;
+    case TYPE_CODE_FUNC:
+      if (TYPE_TARGET_TYPE (type) == NULL)
+       type_print_unknown_return_type (stream);
+      else
+       f_type_print_base (TYPE_TARGET_TYPE (type), stream, show, level);
+      break;
 
     case TYPE_CODE_PTR:
       fprintf_filtered (stream, "PTR TO -> ( ");
This page took 0.026209 seconds and 4 git commands to generate.