This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog ada-valprint.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 7 Mar 2011 08:57:10 -0000
- Subject: src/gdb ChangeLog ada-valprint.c
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2011-03-07 08:57:09
Modified files:
gdb : ChangeLog ada-valprint.c
Log message:
simplify ada-valprint.c:ada_val_print_array
Two things:
- Move the declaration of a couple of variables inside the block
where they are actually used;
- Remove some code that checks against NULL/zero, because the
condition should always be false. Add some gdb_asserts to
make sure we never fail those assumptions.
gdb/ChangeLog:
* ada-valprint.c (ada_val_print_array): Move the declaration of
"byte_order" and "elttype" inside the block where these variables
are actually used. Remove some special handling for the case
where "elttype" and "eltlen" are null. Replace by a comment
and a couple of assertion checks.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12747&r2=1.12748
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-valprint.c.diff?cvsroot=src&r1=1.80&r2=1.81