Remove C/C++ relevant code in Fortran specific file.
[deliverable/binutils-gdb.git] / gdb / c-typeprint.c
index 890888bd4f9da17720932344061016db43b70aca..f752300403ee66090315128d8df1b0a05b039049 100644 (file)
@@ -893,13 +893,19 @@ c_type_print_base (struct type *type, struct ui_file *stream,
       fprintf_filtered (stream, _("<unnamed typedef>"));
       break;
 
+    case TYPE_CODE_FUNC:
+    case TYPE_CODE_METHOD:
+      if (TYPE_TARGET_TYPE (type) == NULL)
+       type_print_unknown_return_type (stream);
+      else
+       c_type_print_base (TYPE_TARGET_TYPE (type),
+                          stream, show, level, flags);
+      break;
     case TYPE_CODE_ARRAY:
     case TYPE_CODE_PTR:
     case TYPE_CODE_MEMBERPTR:
     case TYPE_CODE_REF:
     case TYPE_CODE_RVALUE_REF:
-    case TYPE_CODE_FUNC:
-    case TYPE_CODE_METHOD:
     case TYPE_CODE_METHODPTR:
       c_type_print_base (TYPE_TARGET_TYPE (type),
                         stream, show, level, flags);
This page took 0.023243 seconds and 4 git commands to generate.