mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
2008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
* valprint.c (val_print_array_elements): Pass correct element address to val_print.
This commit is contained in:
@@ -1112,8 +1112,8 @@ val_print_array_elements (struct type *type, const gdb_byte *valaddr,
|
||||
|
||||
if (reps > options->repeat_count_threshold)
|
||||
{
|
||||
val_print (elttype, valaddr + i * eltlen, 0, 0, stream,
|
||||
recurse + 1, options, current_language);
|
||||
val_print (elttype, valaddr + i * eltlen, 0, address + i * eltlen,
|
||||
stream, recurse + 1, options, current_language);
|
||||
annotate_elt_rep (reps);
|
||||
fprintf_filtered (stream, " <repeats %u times>", reps);
|
||||
annotate_elt_rep_end ();
|
||||
@@ -1123,8 +1123,8 @@ val_print_array_elements (struct type *type, const gdb_byte *valaddr,
|
||||
}
|
||||
else
|
||||
{
|
||||
val_print (elttype, valaddr + i * eltlen, 0, 0, stream,
|
||||
recurse + 1, options, current_language);
|
||||
val_print (elttype, valaddr + i * eltlen, 0, address + i * eltlen,
|
||||
stream, recurse + 1, options, current_language);
|
||||
annotate_elt ();
|
||||
things_printed++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user