* ada-valprint.c (ada_print_scalar): Accept NULL type argument
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 29 Jun 2009 17:30:12 +0000 (17:30 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 29 Jun 2009 17:30:12 +0000 (17:30 +0000)
commit7c964f079e2404c667e3e4ffb32a380590c438ab
tree7f68c7f861da1ed02480300e7236211278082899
parent1ce677a4a194224337e88b3b6d365b5dd66714bd
* ada-valprint.c (ada_print_scalar): Accept NULL type argument
to indicate scalar should be printed as default integer.
(print_optional_low_bound): Pass NULL to ada_print_scalar to
indicate default integer output.
* ada-typeprint.c (print_range, print_range_bound): Likewise.
(print_choices): Likewise.  Thus, accept NULL as val_type.
* ada-lang.c (ada_variant_discrim_type): Return NULL when failed
to look up controlling discriminant name.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-typeprint.c
gdb/ada-valprint.c