diff options
author | Tom Tromey <tromey@redhat.com> | 2010-07-14 14:13:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-07-14 14:13:53 +0000 |
commit | b696cfffd82b61393f14a642f2bff596b24ee37a (patch) | |
tree | 3ff3eecbc1efd127102e659e9f98caeb0c64e388 /gdb/c-valprint.c | |
parent | c7e212eda75d70cfef8f54e2b4ca6470c2672db8 (diff) | |
download | gdb-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.c | 3 |
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, "}"); } |