aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-15 15:05:04 +0000
committerTom Tromey <tromey@redhat.com>2011-04-15 15:05:04 +0000
commitcf31e6f9321a5449dd75d5263b917058c232dd80 (patch)
treef332fe60f74f330a3db7ba893698903ca6e0fa19 /gdb/dwarf2read.c
parente21e5835b606f4ef1eb42e99bf26a3e43cdf034a (diff)
downloadgdb-cf31e6f9321a5449dd75d5263b917058c232dd80.zip
gdb-cf31e6f9321a5449dd75d5263b917058c232dd80.tar.gz
gdb-cf31e6f9321a5449dd75d5263b917058c232dd80.tar.bz2
* dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 5bf98de..032fbd5 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -15491,7 +15491,7 @@ add_index_entry (struct mapped_symtab *symtab, const char *name,
/* Don't push an index twice. Due to how we add entries we only
have to check the last one. */
if (VEC_empty (offset_type, (*slot)->cu_indices)
- || VEC_length (offset_type, (*slot)->cu_indices) != cu_index)
+ || VEC_last (offset_type, (*slot)->cu_indices) != cu_index)
VEC_safe_push (offset_type, (*slot)->cu_indices, cu_index);
}