gdb/fortran: Update rules for printing whitespace in types
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 17 Feb 2019 00:37:20 +0000 (00:37 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 30 Apr 2019 09:36:56 +0000 (10:36 +0100)
commitf1fdc960664c24d911d6189b94e5c054b4bb9053
treed561d6e01f2adc4d032f35157eca9831f11c4357
parentbf7a4de1722a63c8b017d010e75d5e9e5e622f36
gdb/fortran: Update rules for printing whitespace in types

The whitespace produced as types are printed seems inconsistent.  This
commit updates the rules in an attempt to make whitespace more
balanced and consistent.  Expected results are updated.

gdb/ChangeLog:

* f-typeprint.c (f_print_type): Update rules for printing
whitespace.
(f_type_print_varspec_suffix): Likewise.

gdb/testsuite/ChangeLog:

* gdb.fortran/ptr-indentation.exp: Update expected results.
* gdb.fortran/ptype-on-functions.exp: Likewise.
* gdb.fortran/vla-ptr-info.exp: Likewise.
* gdb.fortran/vla-value.exp: Likewise.
gdb/ChangeLog
gdb/f-typeprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/ptr-indentation.exp
gdb/testsuite/gdb.fortran/ptype-on-functions.exp
gdb/testsuite/gdb.fortran/vla-ptr-info.exp
gdb/testsuite/gdb.fortran/vla-value.exp