From dd70cc93886d30b8fa7313122946e50e9e224072 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 7 Mar 2011 08:57:09 +0000 Subject: 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. --- gdb/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4887026..965917c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2011-03-07 Joel Brobecker + Michael Snyder + + * 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. + 2011-03-05 Michael Snyder * source.c (add_path): Replace semicolon at end of block. -- cgit v1.1