diff options
author | Tom Tromey <tromey@redhat.com> | 2010-07-14 14:13:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-07-14 14:13:55 +0000 |
commit | 91158a569dc571a9916dfad98c6c95ce789ad18d (patch) | |
tree | a7341c3a0f37b741ed5d233483e3f7e7b6d0bc63 /gdb/testsuite/gdb.python/py-prettyprint.exp | |
parent | 783659f926cc0c9a76d12590b01c75fd0caa58bb (diff) | |
download | gdb-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/testsuite/gdb.python/py-prettyprint.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-prettyprint.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index f435fb7..3b2aadd 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -76,6 +76,8 @@ proc run_lang_tests {lang} { gdb_test "print ssa\[1\]" " = a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>" gdb_test "print ssa" " = {a=< a=<3> b=<$hex>> b=< a=<4> b=<$hex>>, a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>}" + gdb_test "print arraystruct" " = {$nl *y = 7, *$nl *x = { a=<23> b=<$hex>, a=<24> b=<$hex>} *$nl *}" + if {$lang == "c++"} { gdb_test "print cps" "= a=<8> b=<$hex>" gdb_test "print cpss" " = {$nl *zss = 9, *$nl *s = a=<10> b=<$hex>$nl}" |