aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-14 14:13:55 +0000
committerTom Tromey <tromey@redhat.com>2010-07-14 14:13:55 +0000
commit91158a569dc571a9916dfad98c6c95ce789ad18d (patch)
treea7341c3a0f37b741ed5d233483e3f7e7b6d0bc63 /gdb/c-valprint.c
parent783659f926cc0c9a76d12590b01c75fd0caa58bb (diff)
downloadgdb-91158a569dc571a9916dfad98c6c95ce789ad18d.zip
gdb-91158a569dc571a9916dfad98c6c95ce789ad18d.tar.gz
gdb-91158a569dc571a9916dfad98c6c95ce789ad18d.tar.bz2
2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
* c-valprint.c (c_val_print): Add embedded_offset to address in call to val_print_array_elements. 2010-07-13 Tom Tromey <tromey@redhat.com> * gdb.python/py-prettyprint.c (struct arraystruct): New struct. (main): Use it. * gdb.python/py-prettyprint.exp (run_lang_tests): Add test.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 4e5a95f..f0895a4 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -222,7 +222,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
{
i = 0;
}
- val_print_array_elements (type, valaddr + embedded_offset, address, stream,
+ val_print_array_elements (type, valaddr + embedded_offset,
+ address + embedded_offset, stream,
recurse, original_value, options, i);
fprintf_filtered (stream, "}");
}