* c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
authorJim Kingdon <jkingdon@engr.sgi.com>
Sat, 15 Jan 1994 15:27:49 +0000 (15:27 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sat, 15 Jan 1994 15:27:49 +0000 (15:27 +0000)
Print our "()" first, then recurse for the target type.

gdb/ChangeLog
gdb/c-typeprint.c

index 8cdbbe32db213cf380841e7ca1e34adc04930afb..22100b24d8aa71d7684bb5a679396b1d7443c831 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jan 15 10:20:13 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
+       Print our "()" first, then recurse for the target type.
+
 Fri Jan 14 21:55:39 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
index c5b92f8cabb4b5683580ec6bf90d73be4dca6f78..8d72838407afd451bf4f15b418d1255debaa7040 100644 (file)
@@ -409,12 +409,12 @@ c_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
       break;
 
     case TYPE_CODE_FUNC:
-      c_type_print_varspec_suffix (TYPE_TARGET_TYPE (type), stream, 0,
-                                passed_a_ptr, 0);
       if (passed_a_ptr)
        fprintf_filtered (stream, ")");
       if (!demangled_args)
        fprintf_filtered (stream, "()");
+      c_type_print_varspec_suffix (TYPE_TARGET_TYPE (type), stream, 0,
+                                  passed_a_ptr, 0);
       break;
 
     case TYPE_CODE_UNDEF: