diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-15 15:27:49 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-15 15:27:49 +0000 |
commit | dac317dc3fc938bf1570c6fc074bf0fde96a4de1 (patch) | |
tree | b3084ed562f44e23502c68d2c1cc6aeb824ad90a /gdb/c-typeprint.c | |
parent | 3dcb86173f62c9e04bf41c3b0ee7cd02ed6986d4 (diff) | |
download | fsf-binutils-gdb-dac317dc3fc938bf1570c6fc074bf0fde96a4de1.zip fsf-binutils-gdb-dac317dc3fc938bf1570c6fc074bf0fde96a4de1.tar.gz fsf-binutils-gdb-dac317dc3fc938bf1570c6fc074bf0fde96a4de1.tar.bz2 |
* c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Print our "()" first, then recurse for the target type.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index c5b92f8..8d72838 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -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: |