This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb valprint.h valprint.c ada-valprint.c C ...
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 23 May 2008 18:13:36 -0000
- Subject: src/gdb valprint.h valprint.c ada-valprint.c C ...
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2008-05-23 18:13:36
Modified files:
gdb : valprint.h valprint.c ada-valprint.c ChangeLog
Log message:
* valprint.h (get_array_bounds): Renames get_array_low_bound.
* valprint.c (get_array_bounds): Renames get_array_low_bound.
Return the proper bound value if the array index type is an
enumerated type. Compute the high bound if requested.
(val_print_array_elements): Handle the case when the array
element has a null size.
* ada-valprint.c (print_optional_low_bound): Add handling
for empty arrays or arrays of zero-size elements.
(ada_val_print_array): New function, extracted out from
ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
handle empty arrays and arrays of zero-size elements.
(ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
code by call to ada_val_print_array.
(ada_value_print): Remove handling of null array. The handling
was incomplete and is now better handled by ada_val_print_array.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/valprint.h.diff?cvsroot=src&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/valprint.c.diff?cvsroot=src&r1=1.72&r2=1.73
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-valprint.c.diff?cvsroot=src&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.9433&r2=1.9434