gdb/fortran: Print 'void' type in lower case
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 16 Feb 2019 16:39:29 +0000 (16:39 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 30 Apr 2019 09:17:01 +0000 (10:17 +0100)
commitbbe75b9d00cc6f0694ff26569505c349d55e35f1
tree832a194eb5b6d357635f22cd129b6c0802ff783e
parent1db455a76c39e2be6a8a9613b7a19439f24722d0
gdb/fortran: Print 'void' type in lower case

For a program compiled with gfortran the base type names are written
as lower cases in the DWARF, and so GDB will display them as lower
case.  Additionally, in most places where GDB supplies its own type
names (for example all of the types defined in f-lang.c in
`build_fortran_types`), the type names are all lower case.

An exception to this is where GDB prints the void type for Fortran.
In this case GDB uses upper case.

I'm not aware of any reason why this type should merit special
attention, and it looks our of place when printing types, so this
commit changes from 'VOID' to 'void' to match all the other types.

gdb/ChangeLog:

* f-lang.c (build_fortran_types): Change name of void type to
lower case.
* f-typeprint.c (f_type_print_base): Print the name of the void
type, rather than a fixed string.
* f-valprint.c (f_decorations): Use lower case void string.

gdb/testsuite/ChangeLog:

* gdb.fortran/exprs.exp (test_convenience_variables): Expect lower
case void string.
gdb/ChangeLog
gdb/f-lang.c
gdb/f-typeprint.c
gdb/f-valprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/exprs.exp
This page took 0.025237 seconds and 4 git commands to generate.