X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fd-valprint.c;h=527c08784ed437b191bec3057953810c8be89e22;hb=9f3a5c850eddd9e804c20a9c664e90b9e3d14140;hp=969cfe2d6a9414322690be6c7f12140587c7e3c5;hpb=490f124f0943a59ca6829a030164f79716600166;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c index 969cfe2d6a..527c08784e 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -1,6 +1,6 @@ /* Support for printing D values for GDB, the GNU debugger. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. This file is part of GDB. @@ -45,7 +45,7 @@ dynamic_array_type (struct type *type, const gdb_byte *valaddr, struct type *elttype; struct type *true_type; struct type *ptr_type; - struct value *val; + struct value *ival; int length; length = unpack_field_as_long (type, valaddr + embedded_offset, 0); @@ -58,12 +58,12 @@ dynamic_array_type (struct type *type, const gdb_byte *valaddr, true_type = check_typedef (elttype); true_type = lookup_array_range_type (true_type, 0, length - 1); - val = value_at (true_type, addr); + ival = value_at (true_type, addr); return d_val_print (true_type, - value_contents_for_printing (val), - value_embedded_offset (val), addr, - stream, recurse + 1, val, options); + value_contents_for_printing (ival), + value_embedded_offset (ival), addr, + stream, recurse + 1, ival, options); } return -1; }