This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog ada-typeprint.c
- From: hilfingr at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 4 Oct 2010 06:37:54 -0000
- Subject: src/gdb ChangeLog ada-typeprint.c
CVSROOT: /cvs/src
Module name: src
Changes by: hilfingr@sourceware.org 2010-10-04 06:37:54
Modified files:
gdb : ChangeLog ada-typeprint.c
Log message:
Have ptype handle types declared pragma Unchecked_Variants.
When a type is marked with pragma Unchecked_Variants, ptype did not print
variants having a single component, since the compiler produces incorrect
debugging output for such cases. With this patch, we special-case these
components so that they print.
Changelog:
* gdb/ada-typeprint.c (print_selected_record_field_types): New function,
incorporating and generalizing print_record_field_types.
(print_record_field_types): Change return value and update comment.
Re-implement using print_selected_record_field_types.
(print_choices): Print "=>" here.
Handle case of unencoded variant branch.
(print_variant_clauses): Reformat comment.
Special-case unencoded variant branch.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12226&r2=1.12227
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-typeprint.c.diff?cvsroot=src&r1=1.36&r2=1.37