diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-03-07 08:57:09 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-03-07 08:57:09 +0000 |
commit | dd70cc93886d30b8fa7313122946e50e9e224072 (patch) | |
tree | 6bf14aee37e94a040305dbed53e6819b21ee07dc /libiberty/xstrerror.c | |
parent | acc69ddaffbb84a833130a62d391b91715a71e98 (diff) | |
download | gdb-dd70cc93886d30b8fa7313122946e50e9e224072.zip gdb-dd70cc93886d30b8fa7313122946e50e9e224072.tar.gz gdb-dd70cc93886d30b8fa7313122946e50e9e224072.tar.bz2 |
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.
Diffstat (limited to 'libiberty/xstrerror.c')
0 files changed, 0 insertions, 0 deletions