summaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-14 14:13:53 +0000
committerTom Tromey <tromey@redhat.com>2010-07-14 14:13:53 +0000
commitb696cfffd82b61393f14a642f2bff596b24ee37a (patch)
tree3ff3eecbc1efd127102e659e9f98caeb0c64e388 /gdb/c-valprint.c
parentc7e212eda75d70cfef8f54e2b4ca6470c2672db8 (diff)
downloadgdb-b696cfffd82b61393f14a642f2bff596b24ee37a.tar.gz
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 4e5a95fe062..f0895a4d9c1 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, "}");
}