aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-11-24 18:10:11 +0000
committerTom Tromey <tromey@redhat.com>2008-11-24 18:10:11 +0000
commitf9e31323b43bd9bdf235dd9ab05706bef3242ac6 (patch)
treeed5fa8dc19c6cb97ef494b5f4c7909a0f463df10 /gdb/valprint.c
parentf142445f872fe237e7597c96c735dd03d9037bc5 (diff)
downloadgdb-f9e31323b43bd9bdf235dd9ab05706bef3242ac6.zip
gdb-f9e31323b43bd9bdf235dd9ab05706bef3242ac6.tar.gz
gdb-f9e31323b43bd9bdf235dd9ab05706bef3242ac6.tar.bz2
2008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
* valprint.c (val_print_array_elements): Pass correct element address to val_print.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 5086a70..6bcb2f8 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -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++;
}